@ycodium-ai/plugin-api 0.2.5971 → 0.2.6054

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.
Files changed (46) hide show
  1. package/README.md +12 -2
  2. package/dist/_private/ycodium-composer-tokens/composerLogic.d.ts +2 -1
  3. package/dist/_private/ycodium-composer-tokens/composerLogic.js +3 -4
  4. package/dist/_private/ycodium-executor-common/todoPlan.d.ts +6 -0
  5. package/dist/_private/ycodium-executor-common/todoPlan.js +22 -0
  6. package/dist/conversation-queue.d.ts +1 -0
  7. package/dist/conversation-queue.d.ts.map +1 -1
  8. package/dist/conversation.d.ts +32 -44
  9. package/dist/conversation.d.ts.map +1 -1
  10. package/dist/conversation.js.map +1 -1
  11. package/dist/conversationHostModels.d.ts +2 -0
  12. package/dist/conversationHostModels.d.ts.map +1 -1
  13. package/dist/conversationViewProps.d.ts +3 -0
  14. package/dist/conversationViewProps.d.ts.map +1 -1
  15. package/dist/conversationWorkEntry.d.ts +1 -0
  16. package/dist/conversationWorkEntry.d.ts.map +1 -1
  17. package/dist/dataPorts.gen.d.ts +18562 -9549
  18. package/dist/dataPorts.gen.d.ts.map +1 -1
  19. package/dist/dataPorts.gen.js.map +1 -1
  20. package/dist/entity-names.d.ts +1 -0
  21. package/dist/entity-names.d.ts.map +1 -1
  22. package/dist/executor.d.ts +1 -0
  23. package/dist/executor.d.ts.map +1 -1
  24. package/dist/executor.js +1 -0
  25. package/dist/executor.js.map +1 -1
  26. package/dist/executorCapabilities.d.ts +2 -0
  27. package/dist/executorCapabilities.d.ts.map +1 -1
  28. package/dist/source/_private/ycodium-composer-tokens/composerLogic.ts +4 -5
  29. package/dist/source/_private/ycodium-executor-common/todoPlan.ts +27 -0
  30. package/dist/source/conversation-queue.ts +1 -0
  31. package/dist/source/conversation.ts +31 -37
  32. package/dist/source/conversationHostModels.ts +6 -1
  33. package/dist/source/conversationViewProps.ts +3 -0
  34. package/dist/source/conversationWorkEntry.ts +1 -0
  35. package/dist/source/dataPorts.gen.ts +699 -1084
  36. package/dist/source/entity-names.ts +1 -0
  37. package/dist/source/executor.ts +1 -0
  38. package/dist/source/executorCapabilities.ts +2 -0
  39. package/dist/source/ui.ts +6 -1
  40. package/dist/source/version.ts +3 -3
  41. package/dist/ui.d.ts +1 -1
  42. package/dist/ui.d.ts.map +1 -1
  43. package/dist/version.d.ts +3 -3
  44. package/dist/version.d.ts.map +1 -1
  45. package/dist/version.js +2 -2
  46. package/package.json +5 -5
@@ -2,1145 +2,752 @@
2
2
  // 改了已定契约或新定了能力:重跑那个脚本,把结果一起提交(CI 用 --check 核)。
3
3
 
4
4
  export type SchemaUtc = { readonly _tag: "Utc"; readonly epochMilliseconds: number };
5
- type Objects_ = { };
6
- type Union_ = { readonly "status": "idle", readonly "preparationId"?: string, readonly "updatedAt"?: string } | { readonly "preparationId": string, readonly "updatedAt": string, readonly "status": "running", readonly "stage": "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly "receivedBytes"?: number, readonly "totalBytes"?: number } | { readonly "preparationId": string, readonly "updatedAt": string, readonly "status": "ready", readonly "version": string, readonly "sandboxed"?: boolean } | { readonly "preparationId": string, readonly "updatedAt": string, readonly "status": "failed", readonly "stage": "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly "reason": string, readonly "detail": string, readonly "retryable": boolean } | { readonly "preparationId": string, readonly "updatedAt": string, readonly "status": "cancelled" };
7
- type Objects_1 = { readonly "profiles": ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "kind": "persistent" | "incognito" }>, readonly "agentAccess": { readonly [x: string]: boolean }, readonly "defaultProfileId": string };
8
- type Objects_2 = { readonly "_tag": "fill" };
9
- type Objects_3 = { readonly "_tag": "freeform", readonly "width": number, readonly "height": number };
10
- type Objects_4 = { readonly "_tag": "preset", readonly "width": number, readonly "height": number, readonly "presetId": "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" };
11
- type Objects_5 = { readonly "startedAt": string, readonly "requestedBy": "agent" | "user" };
12
- type Objects_6 = { readonly "threadId": string, readonly "tabId": string };
13
- type Objects_8 = { readonly "colorScheme": "light" | "dark", readonly "radius": string, readonly "background": string, readonly "foreground": string, readonly "popover": string, readonly "popoverForeground": string, readonly "primary": string, readonly "primaryForeground": string, readonly "muted": string, readonly "mutedForeground": string, readonly "accent": string, readonly "accentForeground": string, readonly "border": string, readonly "input": string, readonly "ring": string, readonly "fontSans": string, readonly "fontMono": string };
14
- type Objects_9 = { readonly "functionName": string | null, readonly "fileName": string | null, readonly "lineNumber": number | null, readonly "columnNumber": number | null };
15
- type Objects_10 = { readonly "x": number, readonly "y": number, readonly "width": number, readonly "height": number };
16
- type Objects_11 = { readonly "projectId": string };
17
- type Objects_14 = { readonly "kind": string, readonly "id": string, readonly "detail": string, readonly "field"?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly "subject"?: { readonly "kind": "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly "title"?: string, readonly "sequence"?: number } };
18
- type Objects_16 = { readonly "sameAccount": "all" | "listed", readonly "excludedEnvironmentIds": ReadonlyArray<string>, readonly "allowedEnvironmentIds": ReadonlyArray<string> };
19
- type Objects_17 = { readonly "projectId": string, readonly "entryId": string };
20
- type Objects_18 = { readonly "result": "done" | "not-found" | "busy" };
21
- type AccountMachineDiscoveryFailure = { readonly "reason": "missing_bearer" | "invalid_bearer" | "invalid_dpop" | "invalid_relay_access_ticket" | "not_authorized" | "environment_credential_invalid" | "machine_link_missing" | "machine_key_mismatch" | "machine_account_disabled" | "request_failed", readonly "at": string };
22
- type Arrays_ = ReadonlyArray<string>;
23
- type Arrays_1 = ReadonlyArray<string>;
24
- type SeatHealthFailure = { readonly "at": string, readonly "code": "credential-rejected" | "mcp-failed" | "invalid-pending" | "local-read-failed" | "dispatch-failed" | "wake-held" | "storage" | "unreachable", readonly "httpStatus"?: number };
25
- type Objects_20 = { readonly "state": "unknown" | "confirmed" | "stale" | "failed", readonly "confirmedAt"?: string, readonly "failedAt"?: string };
26
- type ProjectMachineRemoval = { readonly "environmentId": string, readonly "removalId": string };
27
- type ProjectMachineRemoval_1 = { readonly "environmentId": string, readonly "removalId": string };
28
- type ProjectMachineRemoval_2 = { readonly "environmentId": string, readonly "removalId": string };
29
- type Arrays_2 = ReadonlyArray<string>;
30
- type Arrays_3 = ReadonlyArray<string>;
31
- type Arrays_4 = ReadonlyArray<"summary" | "runtime">;
5
+ type AccountMachineDiscoveryFailure = { readonly reason: "missing_bearer" | "invalid_bearer" | "invalid_dpop" | "invalid_relay_access_ticket" | "not_authorized" | "environment_credential_invalid" | "machine_link_missing" | "machine_key_mismatch" | "machine_account_disabled" | "request_failed", readonly at: string };
6
+ type AccountMachineDiscoveryStatus = { readonly publish?: AccountMachineDiscoveryFailure, readonly discover?: AccountMachineDiscoveryFailure, readonly recovery?: { readonly state: "reconnecting" | "login_required" | "exhausted" | "unavailable", readonly attempts?: number, readonly nextAttemptAt?: string } };
7
+ type SeatHealthFailure = { readonly at: string, readonly code: "credential-rejected" | "mcp-failed" | "invalid-pending" | "local-read-failed" | "dispatch-failed" | "wake-held" | "storage" | "unreachable", readonly httpStatus?: number };
8
+ type SeatHealth = { readonly lastSuccessAt?: string, readonly lastFailure?: SeatHealthFailure, readonly state?: "active" | "rejected" | "checking" | "home-update-required", readonly nextAttemptAt?: string, readonly consecutiveFailures?: number };
9
+ type ProjectMachineRemoval = { readonly environmentId: string, readonly removalId: string };
10
+ type ProjectMachineWorking = { readonly projectId: string, readonly projectTitle: string, readonly admittedBy?: "join-code" | "client-broker" | "account", readonly seatHealth?: SeatHealth };
11
+ type ProjectMachineByMachine = { readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection: "stream" | "polling" | "none", readonly lastSeenAt?: string, readonly memberUpdateRequired?: true, readonly projects: ReadonlyArray<ProjectMachineWorking> };
12
+ type ProjectMachineRemoval_1 = { readonly environmentId: string, readonly removalId: string };
13
+ type ProjectMachineJoinedHealth = { readonly admittedBy?: "join-code" | "client-broker" | "account", readonly homeEnvironmentId: string, readonly homeName?: string, readonly projectTitle?: string, readonly projectId: string, readonly state: "active" | "rejected" | "checking" | "home-update-required", readonly health?: SeatHealth };
32
14
  type ThreadDirectoryIds = ReadonlyArray<string>;
33
- type Objects_22 = { readonly "sourceThreadId": string, readonly "sourceMessageId"?: string };
34
- type Arrays_5 = ReadonlyArray<"idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error">;
35
- type Objects_24 = { readonly "sourceThreadId": string, readonly "sourceMessageId": string, readonly "sourceTurnNumber"?: number };
36
- type Objects_26 = { readonly "id": string, readonly "value": string | boolean };
37
- type Arrays_8 = ReadonlyArray<{ readonly "id": string, readonly "value": string | boolean }>;
38
- type Objects_29 = { readonly "runtime": number, readonly "source": number, readonly "profile": number, readonly "endpoint"?: number };
39
- type Union_5 = ReadonlyArray<string> | undefined;
40
- type Union_6 = { readonly "projectId": string, readonly "repository": string, readonly "number": number, readonly "url": string } | null | undefined;
41
- type Objects_30 = { readonly "parentThreadId": string, readonly "delegationDepth": number, readonly "requestedBy": "agent" | "continuation" | "person", readonly "notificationPolicy"?: "wake" | "activity-only" | undefined };
42
- type Objects_31 = { readonly "kind": "member", readonly "memberId": string };
43
- type Objects_32 = { readonly "kind": "person", readonly "person": { readonly "kind": "account", readonly "userId": string } | { readonly "kind": "local-owner", readonly "environmentId": string } };
44
- type Objects_33 = { readonly "kind": "thread", readonly "environmentId": string, readonly "threadId": string };
45
- type Objects_34 = { readonly "userId": string, readonly "displayName": string };
46
- type ThreadCreatorAccount = { readonly "kind": "account", readonly "userId": string };
47
- type ThreadCreatorLocalOwner = { readonly "kind": "local-owner", readonly "environmentId": string };
48
- type Objects_35 = { readonly "kind": "approval" | "userInput", readonly "requestId": string, readonly "startedAt": string, readonly "completedAt": string | null, readonly "waitingForYouStartedAt"?: string | null | undefined };
49
- type Objects_36 = { readonly "startedAt": string, readonly "endedAt": string | null };
50
- type Objects_37 = { readonly "requestId": string, readonly "startedAt": string };
51
- type Objects_38 = { readonly "source": "manual" | "generated", readonly "version": string, readonly "needsRefinement": boolean };
52
- type Union_15 = { readonly "source"?: "provider" | undefined, readonly "attempt": number, readonly "maxAttempts": number, readonly "retryDelayMs": number, readonly "httpStatus"?: number | undefined } | { readonly "source": "http-observer", readonly "consecutiveFailures": number, readonly "failureKind": "http" | "transport", readonly "httpStatus"?: number | undefined } | null | undefined;
53
- type Union_16 = { readonly "phase": "handling" | "unanswered" | "direct", readonly "parentThreadId": string } | undefined;
54
- type ThreadContinuationCheck = { readonly "turnId": string, readonly "pluginIds": ReadonlyArray<string>, readonly "startedAt": string };
55
- type Union_17 = { readonly "step": string, readonly "completedSteps": number, readonly "totalSteps": number } | null | undefined;
56
- type Objects_41 = { readonly "machineId": string, readonly "name": string, readonly "online": boolean, readonly "serverVersion"?: string, readonly "wireProtocolVersion"?: number };
57
- type Objects_42 = { readonly "threadId": string, readonly "latestTurn": { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error" } | null, readonly "queue": ReadonlyArray<{ readonly "intentId": string, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "paused"?: true, readonly "position": number, readonly "waitingForCapacity"?: true }>, readonly "truncated": boolean, readonly "queuePaused": boolean, readonly "pendingApprovalCount": number, readonly "pendingUserInputCount": number, readonly "continuation": "active" | "queued" | "blocked" | "paused" | "idle" };
58
- type Union_18 = { readonly "original": string, readonly "steps": ReadonlyArray<{ readonly "pluginId": string, readonly "via": "before-send" | "slash-command", readonly "command"?: string | undefined }> } | undefined;
59
- type Objects_44 = { readonly "kind": "native-session", readonly "provider": string, readonly "sessionId": string, readonly "messageId": string, readonly "turnId"?: string | undefined, readonly "order": number };
60
- type Objects_45 = { readonly "kind": "user" };
61
- type Objects_46 = { readonly "kind": "schedule", readonly "scheduleId": string, readonly "name": string, readonly "pluginId"?: string };
62
- type Objects_47 = { readonly "kind": "scheduled-wake", readonly "wakeId": string, readonly "dueAt": string, readonly "note": string };
63
- type Objects_48 = { readonly "kind": "record", readonly "recordId": string };
64
- type Objects_49 = { readonly "kind": "session", readonly "threadId": string, readonly "turnId"?: string | undefined };
65
- type Objects_50 = { readonly "kind": "reply", readonly "recordId": string };
66
- type Objects_51 = { readonly "kind": "child-report", readonly "childThreadId": string, readonly "outcome": "settled" | "failed" | null };
67
- type TurnIntentContinuation = { readonly "round": number, readonly "limit": number, readonly "of"?: string };
68
- type Objects_53 = { readonly "kind": "board-dispatch", readonly "workItemId": string };
69
- type Objects_54 = { readonly "kind": "person", readonly "pluginId": string, readonly "displayName": string };
70
- type Objects_55 = { readonly "kind": "plugin-notice", readonly "title": string, readonly "pluginId"?: string | undefined };
71
- type Objects_56 = { readonly "kind": "home-machine" };
72
- type Objects_57 = { readonly "kind": "restart-resume" };
73
- type Objects_58 = { readonly "kind": "remote-post", readonly "postId": string, readonly "authorKind": "human" | "agent", readonly "authorName"?: string };
74
- type Objects_59 = { readonly "offset": number, readonly "returned": number, readonly "total": number, readonly "nextOffset": number | null };
75
- type Objects_62 = { readonly "epoch": string, readonly "sequence": number };
76
- type Objects_63 = { readonly "_tag": "synchronized" };
77
- type Objects_65 = { readonly "id": string, readonly "name": string, readonly "command": string, readonly "icon": "play" | "test" | "lint" | "configure" | "build" | "debug", readonly "runOnWorktreeCreate": boolean, readonly "browserUrl"?: string | undefined, readonly "autoOpenBrowser"?: boolean | undefined };
78
- type Union_24 = { readonly "postId": string, readonly "targetKey": string, readonly "authorKind": "human" | "agent", readonly "authorName"?: string | undefined, readonly "authorThreadId"?: string | undefined, readonly "homeName"?: string | undefined } | undefined;
79
- type ChildQuestionRequest = { readonly "activityKind": "user-input.requested" | "question.requested", readonly "questionIds": ReadonlyArray<string> };
80
- type Union_25 = { readonly "kind": "steer" | "interrupt", readonly "turnId": string, readonly "commandId": string, readonly "source"?: "automatic" } | null;
81
- type Objects_67 = { readonly "text": "supported" | "unsupported" | "unknown", readonly "streaming": "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly "reasoning": "supported" | "unsupported" | "unknown" };
82
- type Union_26 = { readonly "sessionId"?: string, readonly "turnId"?: string, readonly "generationId"?: string } | null;
83
- type Objects_68 = { readonly "kind": "thread", readonly "threadId": string };
84
- type Objects_69 = { readonly "kind": "person" };
85
- type Objects_70 = { readonly "kind": "plugin", readonly "pluginId": string };
86
- type Union_27 = { readonly "status": "committed" | "rolled-back" | "failed" | "unknown", readonly "targetVersion"?: string | undefined, readonly "fromVersion": string | null, readonly "reason": string | null } | null;
87
- type Objects_71 = { readonly "cron": string, readonly "timeZone": string };
88
- type Objects_72 = { readonly "width": number, readonly "height": number };
89
- type Union_30 = { readonly "x": number, readonly "y": number, readonly "width": number, readonly "height": number } | null;
90
- type Objects_74 = { readonly "active"?: boolean | undefined, readonly "busy"?: boolean | undefined, readonly "checked"?: "on" | "off" | "mixed" | undefined, readonly "editable"?: boolean | undefined, readonly "enabled"?: boolean | undefined, readonly "expanded"?: boolean | undefined, readonly "focused"?: boolean | undefined, readonly "selected"?: boolean | undefined, readonly "visible"?: boolean | undefined };
91
- type Objects_75 = { readonly "_tag": "agent-artifact", readonly "sourcePath": string, readonly "linkBase"?: string | undefined, readonly "toolCallId"?: string | undefined, readonly "title"?: string | undefined, readonly "note"?: string | undefined, readonly "delivered"?: true | undefined, readonly "sha256"?: string | undefined, readonly "fileCount"?: number | undefined, readonly "deliveryId"?: string | undefined };
92
- type Objects_76 = { readonly "_tag": "pasted-text" };
93
- type Union_32 = { readonly "totalTokens": number, readonly "inputTokens"?: number | undefined, readonly "cachedInputTokens"?: number | undefined, readonly "outputTokens"?: number | undefined, readonly "reasoningOutputTokens"?: number | undefined, readonly "toolUses"?: number | undefined, readonly "durationMs"?: number | undefined } | undefined;
94
- type Union_33 = { readonly "kind": "thread", readonly "environmentId"?: string | undefined, readonly "threadId": string, readonly "turnId"?: string | undefined } | { readonly "kind": "user", readonly "userId": string, readonly "displayName": string } | { readonly "kind": "local-owner", readonly "environmentId": string, readonly "displayName": string } | { readonly "kind": "plugin", readonly "pluginId": string, readonly "displayName": string } | { readonly "kind": "remote-agent", readonly "principalId": string, readonly "displayName": string, readonly "memberId"?: string, readonly "threadId"?: string };
95
- type Objects_77 = { readonly "persisted": string, readonly "handedOff": { readonly "certainty": "not-dispatched" | "confirmed" | "unknown", readonly "evidence"?: "pickup" | undefined, readonly "intentId"?: string | undefined, readonly "turnId"?: string | undefined, readonly "at"?: string | undefined }, readonly "replied": { readonly "recordId"?: string | undefined, readonly "turnId"?: string | undefined, readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly "at": string } | null };
96
- type Objects_79 = { readonly "threadId": string };
97
- type Arrays_11 = ReadonlyArray<{ readonly "memberId": string }>;
98
- type Objects_80 = { readonly "workLineId": string };
99
- type Objects_81 = { readonly "workItemId": string, readonly "commentId"?: string };
100
- type CommunicationChildReport = { readonly "kind": "child.settled" | "child.failed" | "child.stopped" | "child.approval" | "child.question", readonly "requestId"?: string };
101
- type Objects_82 = { readonly "projectId": string, readonly "since"?: string | null, readonly "until"?: string | null, readonly "cursor"?: string | null, readonly "limit"?: number };
102
- type Objects_83 = { readonly "projectId": string, readonly "since"?: string | null, readonly "until"?: string | null, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "threadIds": ReadonlyArray<string> };
103
- type Union_38 = { readonly "kind": "account", readonly "userId": string } | { readonly "kind": "local-owner", readonly "environmentId": string };
104
- type Objects_85 = { readonly "projectId": string, readonly "since"?: string | null, readonly "until"?: string | null, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "groupThreadId": string };
105
- type Union_39 = { readonly "kind": "account", readonly "userId": string } | { readonly "kind": "local-owner", readonly "environmentId": string };
106
- type Objects_89 = { readonly "principalId": string, readonly "memberId"?: string };
107
- type Objects_90 = { readonly "environmentId": string, readonly "threadId": string, readonly "projectId"?: string };
108
- type Objects_91 = { readonly "code": "recipient-read-only" | "recipient-continued" | "recipient-not-running" | "recipient-queue-paused" | "recipient-queue-resumed" | "recipient-unanswered-questions" | "recipient-wake-paused" | "group-without-lead" | "group-lead-unavailable", readonly "detail": string, readonly "threadId"?: string };
109
- type Objects_92 = { readonly "projectId": string, readonly "requestId"?: string, readonly "recordId": string };
110
- type Objects_93 = { readonly [x: string]: string };
111
- type ProviderProbeRecovery = { readonly "action": "retry" | "install" | "sign-in" | "update", readonly "retryAt"?: string | undefined } | undefined;
112
- type Objects_94 = { readonly "name": string, readonly "description"?: string | undefined, readonly "input"?: { readonly "hint": string } | undefined };
113
- type Objects_95 = { readonly "pluginId"?: string | undefined, readonly "name": string, readonly "description"?: string | undefined, readonly "path": string, readonly "scope"?: string | undefined, readonly "enabled": boolean, readonly "displayName"?: string | undefined, readonly "shortDescription"?: string | undefined, readonly "userInvocationOnly"?: boolean | undefined, readonly "userInvocable"?: boolean | undefined };
114
- type Objects_96 = { readonly [x: string]: string };
115
- type Arrays_14 = ReadonlyArray<{ readonly "command": "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `${"script."}${string}${".run"}`, readonly "shortcut": { readonly "key": string, readonly "metaKey": boolean, readonly "ctrlKey": boolean, readonly "shiftKey": boolean, readonly "altKey": boolean, readonly "modKey": boolean }, readonly "whenAst"?: Union_40 | undefined }>;
116
- type Arrays_15 = ReadonlyArray<{ readonly "kind": "keybindings.malformed-config", readonly "message": string } | { readonly "kind": "keybindings.invalid-entry", readonly "message": string, readonly "index": number }>;
117
- type Objects_97 = { readonly "name": string, readonly "value"?: string, readonly "sensitive"?: boolean, readonly "valueRedacted"?: boolean };
118
- type Objects_98 = { readonly [x: string]: boolean };
119
- type Objects_99 = { readonly "source": "none" | "custom" | "plugin", readonly "customId": string | null, readonly "pluginId": string | null, readonly "dimLight": number, readonly "dimDark": number, readonly "blur": number };
120
- type Arrays_16 = ReadonlyArray<string>;
121
- type Arrays_17 = ReadonlyArray<string>;
122
- type Objects_101 = { readonly "source": "none" | "custom" | "plugin", readonly "customId": string | null, readonly "pluginId": string | null, readonly "dimLight": number, readonly "dimDark": number, readonly "blur": number };
123
- type Objects_102 = { readonly "automaticGitFetchInterval"?: number, readonly "providerHealthRefreshInterval"?: number, readonly "hostPowerMonitorActiveInterval"?: number, readonly "hostPowerMonitorIdleInterval"?: number, readonly "idleClientTtl"?: number, readonly "pauseWhenHostLocked"?: boolean, readonly "pauseWhenHostLowPower"?: boolean, readonly "pauseWhenClientLowPower"?: boolean, readonly "pauseWhenOnBattery"?: boolean };
124
- type Union_41 = { readonly "type": "stdio", readonly "command": string, readonly "argCount": number, readonly "envNames": ReadonlyArray<string> } | { readonly "type": "http", readonly "url": string, readonly "headerNames": ReadonlyArray<string> } | { readonly "type": "sse", readonly "url": string, readonly "headerNames": ReadonlyArray<string> };
125
- type Objects_103 = { readonly [x: string]: boolean };
126
- type Union_42 = { readonly "status": "none" | "required" | "authorized" } | undefined;
127
- type Union_43 = { readonly "kind": "plugin", readonly "pluginId": string } | undefined;
128
- type Objects_104 = { readonly "kind": "inline" };
129
- type Objects_105 = { readonly "kind": "builtin", readonly "id": string };
130
- type Objects_106 = { readonly "kind": "catalog", readonly "catalogId": string, readonly "version": string };
131
- type Objects_107 = { readonly [x: string]: boolean };
132
- type Objects_108 = { readonly "otlpTracesUrl": string, readonly "otlpMetricsUrl": string, readonly "otlpLogsUrl": string, readonly "fullTraceUntil"?: number };
133
- type PluginApiVersionRange = { readonly "min": number, readonly "max": number };
134
- type Arrays_18 = ReadonlyArray<"desktop-bootstrap" | "one-time-token">;
135
- type Arrays_19 = ReadonlyArray<"browser-session-cookie" | "bearer-access-token" | "dpop-access-token">;
136
- type Objects_109 = { readonly "accountId"?: string, readonly "revision": number, readonly "peers": ReadonlyArray<{ readonly "environmentId": string, readonly "name": string, readonly "state": "synced" | "syncing" | "unreachable" | "update-required", readonly "syncedAt"?: string, readonly "reason"?: string }>, readonly "conflicts": ReadonlyArray<string>, readonly "excluded": ReadonlyArray<string>, readonly "needsSetup": ReadonlyArray<string> };
137
- type Arrays_20 = ReadonlyArray<{ readonly "pid": number, readonly "startToken": string, readonly "launcher": { readonly "pid": number, readonly "startToken": string } | null, readonly "version": string | null, readonly "port": number | null, readonly "stateDir": string, readonly "managed": boolean, readonly "ready": boolean, readonly "supportsDrain": boolean, readonly "activity": "idle" | "busy" | "unknown", readonly "tasks": ReadonlyArray<{ readonly "threadId": string, readonly "turnId": string | null }> }>;
138
- type Objects_111 = { readonly "pluginId"?: string, readonly "program": string };
139
- type Objects_112 = { readonly "currentVersion": string | null, readonly "runtimeRoot": string, readonly "versions": ReadonlyArray<{ readonly "name": string, readonly "bytes": number, readonly "isCurrent": boolean, readonly "isLegacyLayout": boolean, readonly "inUse": boolean, readonly "holders"?: ReadonlyArray<{ readonly "pid": number, readonly "executable"?: string }> }>, readonly "running": { readonly "pid": number, readonly "port": number, readonly "version": string | null } | null, readonly "backups"?: ReadonlyArray<{ readonly "id": string, readonly "bytes": number, readonly "createdAt": string | null, readonly "targetVersion": string | null, readonly "previousVersion": string | null, readonly "isEmpty": boolean, readonly "inUse": boolean }> };
140
- type MachineLogRecord = { readonly "time": string, readonly "level"?: string, readonly "message"?: unknown, readonly "cause"?: string, readonly "annotations"?: { readonly [x: string]: unknown }, readonly "clipped"?: boolean };
141
- type Arrays_23 = ReadonlyArray<{ readonly "id": string, readonly "value": string | boolean }>;
142
- type Objects_114 = { readonly [x: string]: unknown };
143
- type Objects_117 = { readonly "provider": string, readonly "instanceId"?: string };
144
- type Objects_119 = { readonly "entryId": string, readonly "name": string };
145
- type Arrays_24 = ReadonlyArray<string>;
146
- type Arrays_25 = ReadonlyArray<string>;
147
- type Arrays_26 = ReadonlyArray<string>;
148
- type Arrays_27 = ReadonlyArray<string>;
149
- type Arrays_28 = ReadonlyArray<string>;
150
- type Arrays_29 = ReadonlyArray<string>;
151
- type Objects_120 = { readonly "kind": "inline", readonly "skillMd": string };
152
- type Objects_122 = { readonly [x: string]: string | null };
153
- type Objects_123 = { readonly [x: string]: boolean };
154
- type Objects_124 = { readonly "kind": "builtin", readonly "id": string };
155
- type Objects_125 = { readonly "kind": "catalog", readonly "catalogId": string, readonly "version": string };
156
- type Arrays_30 = ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">;
157
- type Union_47 = { readonly [x: string]: { readonly "description"?: string | undefined, readonly "argumentHint"?: string | undefined } } | undefined;
158
- type Union_48 = { readonly "enabled": boolean, readonly "phase": "idle" | "building" | "error", readonly "error": string | null } | undefined;
159
- type Union_49 = { readonly [x: string]: string } | undefined;
160
- type Union_50 = ReadonlyArray<string> | undefined;
161
- type Arrays_31 = ReadonlyArray<{ readonly "kind": "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly "name": string, readonly "role"?: string }>;
162
- type Union_51 = { readonly "eventsHandled": number, readonly "toolCalls": number, readonly "processesSpawned"?: number | undefined, readonly "lastEventAt": string | null } | undefined;
163
- type Objects_127 = { readonly "kind": "executor" };
164
- type Objects_128 = { readonly "kind": "providers.homes" };
165
- type Objects_129 = { readonly "kind": "workspace.read" };
166
- type Objects_130 = { readonly "kind": "work.read" };
167
- type Objects_131 = { readonly "kind": "work.writeAsPerson" };
168
- type Objects_132 = { readonly "kind": "members.read" };
169
- type Objects_133 = { readonly "kind": "process.workspace" };
170
- type Objects_134 = { readonly "kind": "ports.register" };
171
- type Objects_135 = { readonly "kind": "systemPrompt" };
172
- type Objects_136 = { readonly "kind": "tools.guard" };
173
- type Objects_137 = { readonly "kind": "workspace.write" };
174
- type Objects_138 = { readonly "kind": "sessionProjection" };
175
- type Objects_139 = { readonly "kind": "memory.read" };
176
- type Objects_140 = { readonly "kind": "communication.read" };
177
- type Objects_141 = { readonly "kind": "agentPresets" };
178
- type Objects_142 = { readonly "kind": "threads.user" };
179
- type Union_52 = ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined;
180
- type Arrays_32 = ReadonlyArray<"team" | "project">;
181
- type Arrays_33 = ReadonlyArray<string>;
182
- type Objects_143 = { readonly "ids": readonly [string, ...Array<string>] };
183
- type Union_53 = ReadonlyArray<{ readonly "value": string, readonly "label"?: string | undefined, readonly "labelKey"?: string | undefined, readonly "icon"?: string | undefined }> | undefined;
184
- type Objects_144 = { readonly "key": string, readonly "equals": ReadonlyArray<string> };
185
- type Objects_145 = { readonly [x: string]: unknown };
186
- type Union_55 = { readonly "key": string, readonly "values"?: { readonly [x: string]: string | number } } | { readonly "text": string };
187
- type Objects_149 = { readonly "kind": "person" };
188
- type Objects_150 = { readonly "cron": string, readonly "timeZone": string };
189
- type Objects_151 = { readonly "layer": "wiki", readonly "pageId": string, readonly "revision": number };
190
- type Objects_152 = { readonly "layer": "repo", readonly "rootIndex": number, readonly "rootName": string };
191
- type Objects_153 = { readonly "layer": "settings" };
192
- type Objects_154 = { readonly "layer": "builtin" };
193
- type Objects_155 = { readonly "layer": "plugin", readonly "entryId": string };
194
- type Objects_157 = { readonly "kind": "local-cli", readonly "environmentId": string };
195
- type Objects_158 = { readonly "kind": "seat", readonly "seatId": string };
196
- type Objects_159 = { readonly "kind": "agent", readonly "threadId": string };
197
- type Objects_160 = { readonly "kind": "remote-agent", readonly "principalId": string };
198
- type Objects_161 = { readonly "kind": "plugin", readonly "pluginId": string };
199
- type Objects_162 = { readonly "kind": "system" };
200
- type Arrays_34 = ReadonlyArray<string>;
201
- type Arrays_35 = ReadonlyArray<string>;
202
- type Objects_163 = { readonly "searched": number, readonly "read": number, readonly "delivered": number, readonly "lastUsedAt": string | null, readonly "approximate": true };
203
- type Objects_165 = { readonly "experienceId": string, readonly "revision": number };
204
- type Objects_166 = { readonly "_tag": "queued", readonly "outboxId": string, readonly "homeEnvironmentId": string };
205
- type Objects_167 = { readonly "projectId": string, readonly "requestId"?: string, readonly "experienceId": string };
206
- type Objects_168 = { readonly "sequence": number, readonly "result": { readonly "experienceId": string, readonly "status": "active" | "forgotten" }, readonly "replayed"?: boolean };
207
- type Objects_170 = { readonly "pageId": string, readonly "revision": number };
208
- type Objects_172 = { readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly "pageId": string, readonly "revision": number };
209
- type Union_57 = { readonly "experienceId": string, readonly "revision": number } | null;
210
- type Objects_176 = { readonly "kind": "remote-agent", readonly "principalId": string };
211
- type Objects_177 = { readonly "stateId": string, readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly "name": string };
212
- type Arrays_38 = ReadonlyArray<string>;
213
- type Objects_180 = { readonly "message": string, readonly "at": string };
214
- type Objects_181 = { readonly "userCode"?: string, readonly "verificationUrl"?: string, readonly "command"?: string };
215
- type Objects_182 = { readonly "summary": string, readonly "version"?: string, readonly "installed"?: boolean, readonly "auth"?: "authenticated" | "unauthenticated" | "unknown", readonly "exitCode"?: number };
216
- type Objects_183 = { readonly "reason": string, readonly "reasonCode"?: "git-missing" | "project-folder-missing" | "git-probe-failed", readonly "recovery": "run-again" | "fix-on-machine" | "not-available" };
217
- type Arrays_39 = ReadonlyArray<string>;
218
- type Objects_184 = { readonly "total": number, readonly "completed": number, readonly "cancelled": number };
219
- type Objects_186 = { readonly "stateId": string, readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled" };
220
- type Objects_187 = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId": string, readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly "relatedWorkItemId": string };
221
- type Objects_188 = { readonly "workItemId": string, readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly "relatedWorkItemId": string };
222
- type Objects_190 = { readonly "projectId": string, readonly "requestId"?: string, readonly "workLineId": string };
223
- type Objects_191 = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId": string };
224
- type Objects_192 = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "version": number }, readonly "replayed"?: boolean };
225
- type Objects_193 = { readonly "labelId": string };
226
- type Objects_194 = { readonly "projectId": string, readonly "requestId"?: string, readonly "labelId": string };
227
- type Objects_196 = { readonly "stateId": string };
228
- type Union_61 = { readonly "pattern": string, readonly "color": string } | null;
229
- type Objects_198 = { readonly "pattern": string, readonly "color": string };
230
- type Objects_199 = { readonly "projectId": string, readonly "requestId"?: string, readonly "memberId": string };
231
- type Objects_200 = { readonly "projectId": string };
232
- type Objects_201 = { readonly "items": ReadonlyArray<{ readonly "memberId": string, readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "lastAction"?: string, readonly "lastActionLabel"?: { readonly "name": string, readonly "path"?: string, readonly "detail"?: string }, readonly "requestSummary"?: string, readonly "waitId"?: string, readonly "workItemId"?: string, readonly "threadId": string, readonly "environmentId": string, readonly "online": boolean, readonly "stale"?: boolean, readonly "since": string, readonly "seenAt": string, readonly "state"?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly "openWorkItemCount"?: number, readonly "openWorkItemIds"?: ReadonlyArray<string> }> };
233
- type Objects_203 = { readonly "sequence": number, readonly "replayed"?: boolean, readonly "status": "accepted" | "noop" };
234
- type Objects_204 = { readonly "_tag": "snap-shot", readonly "capturedAt": string, readonly "appName": string, readonly "windowTitle": string, readonly "accessibleText"?: string, readonly "accessibility"?: { readonly "format": "flat-text", readonly "text": string, readonly "truncated": boolean } | { readonly "format": "element-tree", readonly "coordinateSpace": "captured-image", readonly "imageSize": { readonly "width": number, readonly "height": number }, readonly "truncated": boolean, readonly "root": Objects_205 }, readonly "appIdentifier"?: string, readonly "appIconDataUrl"?: string };
235
- type Objects_206 = { readonly "_tag": "agent-artifact", readonly "sourcePath": string, readonly "linkBase"?: string, readonly "toolCallId"?: string, readonly "title"?: string, readonly "note"?: string, readonly "delivered"?: true, readonly "sha256"?: string, readonly "fileCount"?: number, readonly "deliveryId"?: string };
236
- type Objects_208 = { readonly "projectId": string, readonly "repository": string, readonly "number": number, readonly "url": string };
237
- type Objects_209 = { readonly "_tag": "snap-shot", readonly "capturedAt": string, readonly "appName": string, readonly "windowTitle": string, readonly "accessibleText"?: string, readonly "accessibility"?: { readonly "format": "flat-text", readonly "text": string, readonly "truncated": boolean } | { readonly "format": "element-tree", readonly "coordinateSpace": "captured-image", readonly "imageSize": { readonly "width": number, readonly "height": number }, readonly "truncated": boolean, readonly "root": Objects_210 }, readonly "appIdentifier"?: string, readonly "appIconDataUrl"?: string };
238
- type Objects_211 = { readonly "_tag": "agent-artifact", readonly "sourcePath": string, readonly "linkBase"?: string, readonly "toolCallId"?: string, readonly "title"?: string, readonly "note"?: string, readonly "delivered"?: true, readonly "sha256"?: string, readonly "fileCount"?: number, readonly "deliveryId"?: string };
239
- type Objects_213 = { readonly "_tag": "agent-artifact", readonly "sourcePath": string, readonly "linkBase"?: string, readonly "toolCallId"?: string, readonly "title"?: string, readonly "note"?: string, readonly "delivered"?: true, readonly "sha256"?: string, readonly "fileCount"?: number, readonly "deliveryId"?: string };
240
- type SessionCleanupRetryInput = { readonly "threadId": string };
241
- type SessionCleanupRecovered = { readonly "status": "recovered" | "already-recovered" };
242
- type SessionCleanupBlocked = { readonly "status": "blocked", readonly "code": "cleanup-exit-unconfirmed" | "cleanup-exit-processing" | "cleanup-stop-commit" | "cleanup-credentials" | "cleanup-session-record" | "cleanup-execution-lease" };
243
- type Union_64 = { readonly "kind": "lucide", readonly "name": string, readonly "color": "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly "kind": "emoji", readonly "emoji": string };
244
- type Objects_214 = { readonly "projectId": string, readonly "folderId": string };
245
- type Objects_215 = { readonly "applied": boolean };
246
- type DatabaseSpaceInput = { };
247
- type DatabaseSpaceStatus = { readonly "databaseBytes": number, readonly "walBytes": number, readonly "reusableBytes": number, readonly "mode": "none" | "full" | "incremental", readonly "conversion": "ready" | "disk-space" | "disk-check-failed" | "failed" | "next-startup", readonly "availableBytes": number | null, readonly "requiredBytes": number, readonly "state": "idle" | "running" | "stopped" | "completed" | "blocked" | "failed", readonly "reclaimedBytes": number, readonly "targetBytes": number, readonly "unavailableReason": "not-converted" | "reader" | "no-free-pages" | null };
248
- type Objects_216 = { readonly "kind": "post", readonly "id": string };
249
- type Objects_217 = { readonly "kind": "record", readonly "id": string };
250
- type Objects_218 = { readonly "kind": "comment", readonly "id": string };
251
- type CommunicationPostAttachmentPath = { readonly "path": string, readonly "name"?: string, readonly "mimeType"?: string };
252
- type CommunicationPostAttachmentRef = { readonly "attachmentId": string, readonly "name": string, readonly "mimeType"?: string, readonly "sourcePath"?: string };
253
- type CommunicationPostChange = { readonly "projectId": string, readonly "requestId"?: string, readonly "postId": string };
254
- type CommunicationPostBindResult = { readonly "postId": string, readonly "targetKey": string };
255
- type CommunicationChildReport_1 = { readonly "kind": "child.settled" | "child.failed" | "child.stopped" | "child.approval" | "child.question", readonly "requestId"?: string };
256
- type CommunicationPostNotificationResolution = { readonly "resolution": "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled", readonly "at": string };
257
- type Union_66 = { readonly "kind": "post", readonly "id": string } | { readonly "kind": "record", readonly "id": string } | { readonly "kind": "comment", readonly "id": string };
258
- type CommunicationPostMarkReadItem = { readonly "postId": string, readonly "targetKey": string };
259
- type CommunicationPostMarkReadResult = { readonly "marked": number };
260
- type ThreadMemberThreadRefInput = { readonly "kind": "thread", readonly "environmentId": string, readonly "threadId": string };
261
- type ThreadMembersSource = "implicit" | "explicit" | "line";
262
- type ThreadMemberInputMemberRef = { readonly "kind": "member", readonly "memberId": string };
263
- type ThreadMemberInputAccount = { readonly "kind": "account", readonly "userId": string };
264
- type ThreadMemberInputLocalOwner = { readonly "kind": "local-owner", readonly "environmentId": string };
265
- type Objects_219 = { readonly "projectId": string };
266
- type Objects_221 = { readonly "spaceId": string, readonly "projectId": string, readonly "name": string, readonly "excludePatterns": ReadonlyArray<string>, readonly "includedLargeFiles": ReadonlyArray<string>, readonly "headOid": string | null, readonly "openConflictCount": number, readonly "openConflicts": ReadonlyArray<{ readonly "conflictId": string, readonly "projectId": string, readonly "spaceId": string, readonly "kind": "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly "originalPath": string, readonly "copyPath": string | null, readonly "baseOid": string | null, readonly "homeOid": string | null, readonly "memberOid": string | null, readonly "homeMachineLabel": string, readonly "homeUpdatedAt": string, readonly "memberMachineLabel": string, readonly "memberUpdatedAt": string, readonly "status": "open" | "resolved", readonly "resolvedChoice"?: "keep-home" | "take-member" | "keep-both" | null, readonly "resolvedAt"?: string | null }>, readonly "createdAt": string, readonly "updatedAt": string };
267
- type Objects_222 = { readonly "relativePath": string, readonly "reason": "busy" | "modified-during-stage" | "baseline-mismatch", readonly "recoveryPath"?: string | null };
268
- type Objects_223 = { readonly "relativePath": string, readonly "size": number, readonly "previouslyTracked": boolean };
269
- type Objects_224 = { readonly "projectId": string, readonly "spaceId"?: string };
270
- type ProjectMachineRemoval_3 = { readonly "environmentId": string, readonly "removalId": string };
271
- type Objects_227 = { readonly "sourceThreadId": string, readonly "sourceMessageId": string, readonly "sourceTurnNumber"?: number };
272
- type Objects_228 = { readonly "provider"?: unknown | undefined, readonly "instanceId"?: unknown | undefined, readonly "model": unknown, readonly "options"?: unknown | undefined };
273
- type Union_69 = ReadonlyArray<string> | undefined;
274
- type Objects_230 = { readonly "parentThreadId": string, readonly "delegationDepth": number, readonly "requestedBy": "agent" | "continuation" | "person", readonly "notificationPolicy"?: "wake" | "activity-only" | undefined };
275
- type ThreadMemberRef_1 = { readonly "kind": "member", readonly "memberId": string } | { readonly "kind": "person", readonly "person": { readonly "kind": "account", readonly "userId": string } | { readonly "kind": "local-owner", readonly "environmentId": string } } | { readonly "kind": "thread", readonly "environmentId": string, readonly "threadId": string };
276
- type Objects_231 = { readonly "userId": string, readonly "displayName": string };
277
- type ThreadCreatorAccount_1 = { readonly "kind": "account", readonly "userId": string };
278
- type ThreadCreatorLocalOwner_1 = { readonly "kind": "local-owner", readonly "environmentId": string };
279
- type Objects_232 = { readonly "kind": "approval" | "userInput", readonly "requestId": string, readonly "startedAt": string, readonly "completedAt": string | null, readonly "waitingForYouStartedAt"?: string | null | undefined };
280
- type Objects_233 = { readonly "requestId": string, readonly "startedAt": string };
281
- type Objects_234 = { readonly "source": "manual" | "generated", readonly "version": string, readonly "needsRefinement": boolean };
282
- type Union_78 = { readonly "phase": "handling" | "unanswered" | "direct", readonly "parentThreadId": string } | undefined;
283
- type ThreadContinuationCheck_1 = { readonly "turnId": string, readonly "pluginIds": ReadonlyArray<string>, readonly "startedAt": string };
284
- type Union_79 = { readonly "step": string, readonly "completedSteps": number, readonly "totalSteps": number } | null | undefined;
285
- type Objects_237 = { readonly "machineId": string, readonly "name": string, readonly "online": boolean, readonly "serverVersion"?: string, readonly "wireProtocolVersion"?: number };
286
- type Union_80 = { readonly "original": string, readonly "steps": ReadonlyArray<{ readonly "pluginId": string, readonly "via": "before-send" | "slash-command", readonly "command"?: string | undefined }> } | undefined;
287
- type Objects_239 = { readonly "kind": "native-session", readonly "provider": string, readonly "sessionId": string, readonly "messageId": string, readonly "turnId"?: string | undefined, readonly "order": number };
288
- type Objects_240 = { readonly "kind": "schedule", readonly "scheduleId": string, readonly "name": string, readonly "pluginId"?: string };
289
- type Objects_241 = { readonly "kind": "scheduled-wake", readonly "wakeId": string, readonly "dueAt": string, readonly "note": string };
290
- type Objects_242 = { readonly "kind": "record", readonly "recordId": string };
291
- type Objects_243 = { readonly "kind": "session", readonly "threadId": string, readonly "turnId"?: string | undefined };
292
- type Objects_244 = { readonly "kind": "reply", readonly "recordId": string };
293
- type Objects_245 = { readonly "kind": "child-report", readonly "childThreadId": string, readonly "outcome": "settled" | "failed" | null };
294
- type TurnIntentContinuation_1 = { readonly "round": number, readonly "limit": number, readonly "of"?: string };
295
- type Objects_247 = { readonly "kind": "board-dispatch", readonly "workItemId": string };
296
- type Objects_248 = { readonly "kind": "person", readonly "pluginId": string, readonly "displayName": string };
297
- type Objects_249 = { readonly "kind": "plugin-notice", readonly "title": string, readonly "pluginId"?: string | undefined };
298
- type Objects_250 = { readonly "kind": "remote-post", readonly "postId": string, readonly "authorKind": "human" | "agent", readonly "authorName"?: string };
299
- type Objects_252 = { readonly "id": string, readonly "name": string, readonly "command": string, readonly "icon": "play" | "test" | "lint" | "configure" | "build" | "debug", readonly "runOnWorktreeCreate": boolean, readonly "browserUrl"?: string | undefined, readonly "autoOpenBrowser"?: boolean | undefined };
300
- type Union_86 = { readonly "postId": string, readonly "targetKey": string, readonly "authorKind": "human" | "agent", readonly "authorName"?: string | undefined, readonly "authorThreadId"?: string | undefined, readonly "homeName"?: string | undefined } | undefined;
301
- type Union_87 = { readonly "kind": "steer" | "interrupt", readonly "turnId": string, readonly "commandId": string, readonly "source"?: "automatic" } | null;
302
- type Union_88 = { readonly "sessionId"?: string, readonly "turnId"?: string, readonly "generationId"?: string } | null;
303
- type Objects_255 = { readonly "_tag": "agent-artifact", readonly "sourcePath": string, readonly "linkBase"?: string | undefined, readonly "toolCallId"?: string | undefined, readonly "title"?: string | undefined, readonly "note"?: string | undefined, readonly "delivered"?: true | undefined, readonly "sha256"?: string | undefined, readonly "fileCount"?: number | undefined, readonly "deliveryId"?: string | undefined };
304
- type Objects_256 = { readonly "source": "none" | "custom" | "plugin", readonly "customId": string | null, readonly "pluginId": string | null, readonly "dimLight": number, readonly "dimDark": number, readonly "blur": number };
305
- type Union_91 = { readonly "kind": "plugin", readonly "pluginId": string } | undefined;
306
- type Union_1 = Objects_2 | Objects_3 | Objects_4;
307
- type Objects_13 = { readonly "ok": boolean, readonly "categories": { readonly [x: string]: { readonly "source": number, readonly "applied": number, readonly "mapped": number, readonly "skipped": number, readonly "missing": number } }, readonly "notExported": { readonly [x: string]: number }, readonly "pluginFactsNotExported": { readonly [x: string]: number }, readonly "differences": ReadonlyArray<Objects_14>, readonly "differencesTotal": number, readonly "noted": ReadonlyArray<Objects_14>, readonly "notedTotal": number };
308
- type AccountMachineDiscoveryStatus = { readonly "publish"?: AccountMachineDiscoveryFailure, readonly "discover"?: AccountMachineDiscoveryFailure, readonly "recovery"?: { readonly "state": "reconnecting" | "login_required" | "exhausted" | "unavailable", readonly "attempts"?: number, readonly "nextAttemptAt"?: string } };
309
- type Objects_19 = { readonly "actionId": string, readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly "driver"?: string, readonly "displayName"?: string, readonly "description"?: string, readonly "variants"?: Arrays_, readonly "reversible": boolean };
310
- type SeatHealth = { readonly "lastSuccessAt"?: string, readonly "lastFailure"?: SeatHealthFailure, readonly "state"?: "active" | "rejected" | "checking" | "home-update-required", readonly "nextAttemptAt"?: string, readonly "consecutiveFailures"?: number };
311
- type Objects_21 = { readonly "command": string, readonly "args"?: Arrays_2, readonly "cwd"?: string, readonly "timeoutSeconds"?: number };
312
- type Objects_174 = { readonly "command": string, readonly "args"?: Arrays_2, readonly "cwd"?: string, readonly "timeoutSeconds"?: number };
313
- type Union_2 = Objects_24 | null;
314
- type Union_23 = Objects_24 | null | undefined;
315
- type Arrays_6 = ReadonlyArray<Objects_26>;
316
- type Arrays_7 = ReadonlyArray<Objects_26>;
317
- type Objects_28 = { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": Arrays_8, readonly "expectedRevisions": Objects_29 };
318
- type Objects_207 = { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": Arrays_8, readonly "expectedRevisions": Objects_29 };
319
- type Union_7 = Objects_30 | null | undefined;
320
- type ThreadMemberRef = Objects_31 | Objects_32 | Objects_33;
321
- type Union_65 = { readonly "kind": "work-item", readonly "workItemId": string } | Objects_33 | Objects_32 | { readonly "kind": "principal", readonly "principalId": string, readonly "memberId"?: string };
322
- type Arrays_41 = ReadonlyArray<Objects_31 | Objects_32 | Objects_33 | { readonly "kind": "principal", readonly "principalId": string, readonly "memberId"?: string }>;
323
- type ThreadMembersUpdateResult = { readonly "thread": Objects_33, readonly "version": number };
324
- type Union_8 = Objects_34 | null | undefined;
325
- type Union_19 = Objects_34 | null | undefined;
15
+ type ThreadMemberRef = { readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string };
16
+ type ThreadMembers = ReadonlyArray<ThreadMemberRef>;
17
+ type ThreadCreatorAccount = { readonly kind: "account", readonly userId: string };
18
+ type ThreadCreatorLocalOwner = { readonly kind: "local-owner", readonly environmentId: string };
326
19
  type ThreadCreatorPrincipal = ThreadCreatorAccount | ThreadCreatorLocalOwner;
327
- type Union_10 = ReadonlyArray<Objects_35> | undefined;
328
- type Arrays_9 = ReadonlyArray<Objects_35>;
329
- type Union_11 = ReadonlyArray<Objects_36> | undefined;
330
- type Arrays_10 = ReadonlyArray<Objects_36>;
331
- type Union_12 = Objects_37 | null | undefined;
332
- type Union_13 = Objects_38 | null | undefined;
333
- type Objects_39 = { readonly "threadId": string, readonly "status": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly "providerName": string | null, readonly "providerInstanceId"?: string | undefined, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "nativeModeId"?: string | undefined, readonly "activeTurnId": string | null, readonly "activeTurnSharedSpaceIds"?: ReadonlyArray<string> | undefined, readonly "lastError": string | null, readonly "failureCategory"?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly "retry"?: Union_15, readonly "endReason"?: "server-restart" | undefined, readonly "updatedAt": string };
334
- type Objects_235 = { readonly "threadId": string, readonly "status": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly "providerName": string | null, readonly "providerInstanceId"?: string | undefined, readonly "runtimeMode"?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly "nativeModeId"?: string | undefined, readonly "activeTurnId": string | null, readonly "activeTurnSharedSpaceIds"?: ReadonlyArray<string> | undefined, readonly "lastError": string | null, readonly "failureCategory"?: string | undefined, readonly "retry"?: Union_15, readonly "endReason"?: "server-restart" | undefined, readonly "updatedAt": string };
20
+ type ThreadContinuationCheck = { readonly turnId: string, readonly pluginIds: ReadonlyArray<string>, readonly startedAt: string };
335
21
  type ThreadContinuationCheckOrNull = ThreadContinuationCheck | null;
336
- type Objects_40 = { readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined, readonly "backgroundMonitorCount"?: number | undefined, readonly "planProgress"?: Union_17 };
337
- type Union_21 = Objects_44 | undefined;
338
- type Objects_52 = { readonly "kind": "plugin-wake", readonly "pluginId": string, readonly "continuation"?: TurnIntentContinuation };
339
- type Objects_147 = { readonly "createdBy"?: Objects_68 | Objects_69 | Objects_70, readonly "wakeId": string, readonly "threadId": string, readonly "dueAt": string, readonly "note": string, readonly "state": "scheduled" | "fired" | "cancelled", readonly "afterServerUpgrade": boolean, readonly "firedAt": string | null, readonly "cancelledAt": string | null, readonly "upgrade"?: { readonly "requestedVersion": string, readonly "updateId": string | null, readonly "expectsVerdict"?: boolean | undefined, readonly "outcome": Union_27 }, readonly "repeat"?: { readonly "cron": string, readonly "timeZone": string } };
340
- type Union_29 = { readonly "_tag": "snap-shot", readonly "capturedAt": string, readonly "appName": string, readonly "windowTitle": string, readonly "accessibleText"?: string | undefined, readonly "accessibility"?: { readonly "format": "flat-text", readonly "text": string, readonly "truncated": boolean } | { readonly "format": "element-tree", readonly "coordinateSpace": "captured-image", readonly "imageSize": Objects_72, readonly "truncated": boolean, readonly "root": Objects_73 } | undefined, readonly "appIdentifier"?: string | undefined, readonly "appIconDataUrl"?: string | undefined } | Objects_75 | undefined;
341
- type Union_31 = Objects_76 | Objects_75 | { readonly "_tag": "thread-reference", readonly "environmentId": string, readonly "threadId": string } | undefined;
342
- type Union_34 = Union_33 | null;
343
- type Objects_78 = { readonly "claimId": string, readonly "claimedBy": Union_33, readonly "turnId"?: string | undefined, readonly "at": string };
344
- type Arrays_43 = ReadonlyArray<{ readonly "key": string, readonly "role": "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly "participant": Union_33 | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "scope"?: { readonly "workLineId": string }, readonly "readAt": string | null, readonly "readTurnId"?: string, readonly "deliveryState"?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly "deliveryFailure"?: { readonly "reason": string, readonly "recovery"?: string } }>;
345
- type Objects_84 = { readonly "projectId": string, readonly "since"?: string | null, readonly "until"?: string | null, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "person": Union_38 };
346
- type Objects_88 = { readonly "person": Union_38 };
347
- type Objects_175 = { readonly "kind": "human", readonly "principal": Union_38 };
348
- type CommunicationPostRecipientInput = { readonly "kind": "member", readonly "memberId": string } | { readonly "kind": "person", readonly "person": Union_38 } | { readonly "kind": "thread", readonly "environmentId": string, readonly "threadId": string } | { readonly "kind": "principal", readonly "principalId": string, readonly "memberId"?: string };
349
- type Objects_156 = { readonly "kind": "human", readonly "principal": Union_39 };
350
- type CommunicationPostResult = { readonly "postId": string, readonly "recipientWarnings"?: ReadonlyArray<Objects_91> };
351
- type Objects_116 = { readonly "providers": ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName": string, readonly "enabled": boolean, readonly "readiness": "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly "readinessDetail"?: string | undefined, readonly "recovery"?: ProviderProbeRecovery, readonly "defaultModel": string | null, readonly "concurrency"?: { readonly "live": number, readonly "max": number } }> };
352
- type Arrays_13 = ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName"?: string | undefined, readonly "accentColor"?: string | undefined, readonly "continuation"?: { readonly "groupKey": string } | undefined, readonly "showInteractionModeToggle"?: boolean | undefined, readonly "requiresNewThreadForModelChange"?: boolean | undefined, readonly "supportsContextCompaction"?: boolean | undefined, readonly "supportsTextGeneration"?: boolean | undefined, readonly "supportsNativeModeSwitch"?: boolean | undefined, readonly "maxProcesses"?: number, readonly "supportsTurnSteering"?: boolean | undefined, readonly "runtimeModeSwitch"?: "in-session" | "next-turn", readonly "reportsSpawnedAgents"?: boolean, readonly "blocksHostMcpWritesInAuto"?: boolean, readonly "modelSlugAliases"?: Objects_93, readonly "enabled": boolean, readonly "installed": boolean, readonly "version": string | null, readonly "readiness": { readonly "state": "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly "detail"?: string | undefined, readonly "tooOld"?: { readonly "minimumVersion": string } | undefined, readonly "recovery"?: ProviderProbeRecovery }, readonly "auth": { readonly "status": "authenticated" | "unauthenticated" | "unknown", readonly "type"?: string | undefined, readonly "label"?: string | undefined, readonly "email"?: string | undefined }, readonly "checkedAt": string, readonly "configDigest"?: string, readonly "models": ReadonlyArray<{ readonly "slug": string, readonly "name": string, readonly "shortName"?: string | undefined, readonly "subProvider"?: string | undefined, readonly "isCustom": boolean, readonly "isDefault"?: boolean | undefined, readonly "hidden"?: boolean | undefined, readonly "origin"?: "probe" | "custom" | "card", readonly "capabilities": { readonly "optionDescriptors"?: ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "type": "select", readonly "options": ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "isDefault"?: boolean | undefined }>, readonly "currentValue"?: string | undefined, readonly "promptInjectedValues"?: ReadonlyArray<string> | undefined } | { readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "type": "boolean", readonly "currentValue"?: boolean | undefined }> | undefined } | null, readonly "contextWindow"?: number, readonly "contextWindowSource"?: "user" | "agent" }>, readonly "supportsModelCatalogRefresh"?: boolean, readonly "modelCatalog"?: { readonly "state": "unknown" | "confirmed" | "stale" | "failed", readonly "confirmedAt"?: string, readonly "lastFailure"?: { readonly "at": string, readonly "reason": "timeout" | "not-installed" | "unauthenticated" | "error", readonly "detail"?: string } }, readonly "modelCatalogAuthoritative"?: boolean, readonly "slashCommands": ReadonlyArray<Objects_94>, readonly "skills": ReadonlyArray<Objects_95>, readonly "nativeModes"?: ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "description"?: string | undefined }>, readonly "currentNativeModeId"?: string, readonly "nativeModeByRuntimeMode"?: { readonly [x: string]: string }, readonly "versionAdvisory"?: { readonly "status": "unknown" | "current" | "behind_latest", readonly "currentVersion": string | null, readonly "latestVersion": string | null, readonly "updateCommand": string | null, readonly "canUpdate": boolean, readonly "checkedAt": string | null, readonly "message": string | null }, readonly "probeNotice"?: { readonly "messageKey": string, readonly "params"?: Objects_96 }, readonly "supportsAuthorizationCodeSignIn"?: boolean, readonly "supportsManagedRuntime"?: boolean, readonly "installCommand"?: string, readonly "installUrl"?: string, readonly "signIn"?: ReadonlyArray<{ readonly "kind": "command", readonly "command": string } | { readonly "kind": "environment", readonly "variable": string }>, readonly "signInCommand"?: string, readonly "updateState"?: { readonly "status": "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly "action"?: "update" | "install" | "sign-in", readonly "startedAt": string | null, readonly "finishedAt": string | null, readonly "message": string | null, readonly "output": string | null, readonly "deviceCode"?: { readonly "userCode": string, readonly "verificationUrl": string } } }>;
353
- type Arrays_21 = ReadonlyArray<Objects_111>;
354
- type Arrays_22 = ReadonlyArray<Objects_111>;
355
- type Union_44 = Arrays_23 | Objects_114;
356
- type Objects_121 = { readonly [x: string]: { readonly "command": string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "description"?: string, readonly "timeoutSeconds"?: number, readonly "variants"?: { readonly [x: string]: Arrays_24 } } };
357
- type Union_45 = Arrays_25 | undefined;
358
- type Union_90 = Objects_123 | undefined;
359
- type Union_92 = Objects_123 | undefined;
360
- type Union_46 = Objects_120 | Objects_124 | Objects_125;
361
- type Objects_126 = { readonly "path": string, readonly "methods"?: Arrays_30, readonly "websocket"?: boolean };
362
- type Objects_257 = { readonly "path": string, readonly "methods"?: Arrays_30, readonly "websocket"?: boolean };
363
- type Union_54 = Objects_144 | undefined;
364
- type Objects_146 = { readonly "instanceId": string, readonly "driver": string, readonly "pluginId": string | null, readonly "displayName": string | null, readonly "support": "supported" | "notProvided" | "disabled" | "unavailable", readonly "lastAttempt": { readonly "at": string, readonly "outcome": "available" | "missingCredentials" | "authRejected" | "customEndpoint" | "unreachable" | "unsupportedLogin" | "rateLimited", readonly "retryAt": string | null } | null, readonly "lastAvailable": { readonly "readAt": string, readonly "plan"?: string, readonly "accountKey"?: string, readonly "windows": ReadonlyArray<{ readonly "id": string, readonly "label": Union_55, readonly "usedPercent": number, readonly "resetsAt": string | null, readonly "windowMs"?: number, readonly "group"?: string }>, readonly "balances": ReadonlyArray<{ readonly "id": string, readonly "label": Union_55, readonly "remaining": number | null, readonly "used": number | null, readonly "limit": number | null, readonly "unit": { readonly "kind": "money", readonly "currency": string } | { readonly "kind": "credits" }, readonly "resetsAt": string | null }>, readonly "resetCredits"?: { readonly "availableCount": number } } | null, readonly "inflight": boolean, readonly "redeemable"?: true, readonly "redeeming"?: true };
365
- type Arrays_36 = ReadonlyArray<Objects_172>;
366
- type Objects_173 = { readonly "changed": boolean, readonly "release": number, readonly "pages": ReadonlyArray<Objects_172> };
367
- type Objects_195 = { readonly "sequence": number, readonly "result": Objects_193, readonly "replayed"?: boolean };
368
- type Union_93 = Objects_198 | null;
369
- type Union_70 = Objects_208 | null | undefined;
370
- type CommunicationPostReplyInput = Objects_216 | Objects_217 | Objects_218;
371
- type CommunicationPostReplyInput_1 = Objects_216 | Objects_217 | Objects_218;
372
- type CommunicationPostNotification = { readonly "kind": "child-report", readonly "sourceThreadId": string, readonly "childReport": CommunicationChildReport_1 } | { readonly "kind": "plugin-notice", readonly "sourceThreadId": string };
373
- type ThreadMemberInputPerson = ThreadMemberInputAccount | ThreadMemberInputLocalOwner;
374
- type Objects_220 = { readonly "items": ReadonlyArray<Objects_221> };
375
- type Objects_225 = { readonly "items": ReadonlyArray<{ readonly "projectId": string, readonly "spaceId": string, readonly "folderId": string | null, readonly "canonicalRoot": string | null, readonly "attachState": "unattached" | "attaching" | "ready" | "detaching" | "failed", readonly "lastSyncedOid": string | null, readonly "lastSyncedAt": string | null, readonly "hasPendingOutbox": boolean, readonly "pendingOutboxCommitOid": string | null, readonly "blockedFiles": ReadonlyArray<Objects_222>, readonly "oversizedFiles": ReadonlyArray<Objects_223>, readonly "skippedNestedGitPaths": ReadonlyArray<string>, readonly "inFlightPhase": "preflight" | "pulling" | "staging" | "pushing" | "materializing" | null, readonly "bytesTransferred": number, readonly "bytesTotal": number, readonly "lastError": string | null }> };
376
- type Union_67 = Objects_227 | null;
377
- type Union_85 = Objects_227 | null | undefined;
378
- type Union_82 = Objects_228 | undefined;
379
- type Union_71 = Objects_230 | null | undefined;
380
- type ThreadMembers_1 = ReadonlyArray<ThreadMemberRef_1>;
381
- type Union_72 = Objects_231 | null | undefined;
382
- type Union_81 = Objects_231 | null | undefined;
383
- type ThreadCreatorPrincipal_1 = ThreadCreatorAccount_1 | ThreadCreatorLocalOwner_1;
384
- type Union_74 = ReadonlyArray<Objects_232> | undefined;
385
- type Union_75 = Objects_233 | null | undefined;
386
- type Union_76 = Objects_234 | null | undefined;
387
- type ThreadContinuationCheckOrNull_1 = ThreadContinuationCheck_1 | null;
388
- type Objects_236 = { readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined, readonly "backgroundMonitorCount"?: number | undefined, readonly "planProgress"?: Union_79 };
389
- type Union_83 = Objects_239 | undefined;
390
- type Objects_246 = { readonly "kind": "plugin-wake", readonly "pluginId": string, readonly "continuation"?: TurnIntentContinuation_1 };
391
- type Objects_251 = { readonly "id": string, readonly "title": string, readonly "workspaceRoot": string, readonly "purpose"?: "conversation" | "project" | undefined, readonly "homeEnvironmentId"?: string | null | undefined, readonly "folders"?: ReadonlyArray<{ readonly "id": string, readonly "path": string, readonly "kind"?: "user" | "managed" | undefined, readonly "attachedAt": string, readonly "detachedAt"?: string | null | undefined, readonly "clone"?: { readonly "state": "cloning" | "failed", readonly "remoteUrl": string, readonly "failureKind"?: "cancelled" | "interrupted" | "git" | undefined, readonly "failureCategory"?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly "failure"?: string | undefined, readonly "createdDirectory"?: boolean | undefined, readonly "startedAt": string } | undefined, readonly "sharedSpaceId"?: string | undefined, readonly "sharedSpaceAttachState"?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly "defaultFolderId"?: string | null | undefined, readonly "repositoryIdentity"?: { readonly "canonicalKey": string, readonly "locator": { readonly "source": "git-remote", readonly "remoteName": string, readonly "remoteUrl": string }, readonly "rootPath"?: string, readonly "displayName"?: string, readonly "provider"?: string, readonly "owner"?: string, readonly "name"?: string } | null | undefined, readonly "defaultModelSelection": Objects_228 | null, readonly "faviconPath"?: string | null | undefined, readonly "projectIcon"?: Union_64 | null | undefined, readonly "scripts": ReadonlyArray<Objects_252>, readonly "sortOrderKey"?: string | null | undefined, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt"?: string | null | undefined };
392
- type Union_89 = { readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: { readonly "_tag": "snap-shot", readonly "capturedAt": string, readonly "appName": string, readonly "windowTitle": string, readonly "accessibleText"?: string | undefined, readonly "accessibility"?: { readonly "format": "flat-text", readonly "text": string, readonly "truncated": boolean } | { readonly "format": "element-tree", readonly "coordinateSpace": "captured-image", readonly "imageSize": Objects_72, readonly "truncated": boolean, readonly "root": Objects_254 } | undefined, readonly "appIdentifier"?: string | undefined, readonly "appIconDataUrl"?: string | undefined } | Objects_255 | undefined } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Objects_76 | Objects_255 | { readonly "_tag": "thread-reference", readonly "environmentId": string, readonly "threadId": string } | undefined };
393
- type Objects_7 = { readonly "threadId": string, readonly "tabId": string, readonly "pageEpoch": string, readonly "controlEpoch": number, readonly "viewportEpoch": number, readonly "control": "agent" | "human", readonly "viewport": { readonly "width": number, readonly "height": number }, readonly "colorScheme"?: "system" | "light" | "dark" | undefined, readonly "fillsPanel"?: boolean | undefined, readonly "agentActivity"?: { readonly "active": boolean, readonly "seq": number, readonly "pointer"?: { readonly "x": number, readonly "y": number, readonly "kind": "click" | "scroll" | "type" | "move" } | undefined } | undefined, readonly "recording"?: Objects_5 | undefined, readonly "viewportSetting"?: Union_1 | undefined, readonly "zoomFactor"?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 | undefined, readonly "audible"?: boolean | undefined, readonly "audioMuted"?: boolean | undefined, readonly "downloads"?: ReadonlyArray<{ readonly "id": string, readonly "fileName": string, readonly "state": "inProgress" | "completed" | "canceled", readonly "receivedBytes": number, readonly "totalBytes"?: number | undefined, readonly "fetchable": boolean, readonly "stalled"?: boolean | undefined, readonly "leftover"?: boolean | undefined }> | undefined };
394
- type Objects_12 = { readonly "projectId": string, readonly "homeEnvironmentId": string, readonly "importId": string, readonly "bundleDigest": string, readonly "state": "running" | "stopped" | "verified" | "failed", readonly "nextChunk": number, readonly "chunkCount": number, readonly "stopReason"?: { readonly "_tag": "removed-target", readonly "target": { readonly "kind": "state" | "label" | "line", readonly "id": string, readonly "name"?: string } } | { readonly "_tag": "home-unreachable", readonly "code"?: "home-update-required" | "not-permitted" | "unreachable", readonly "detail"?: string } | { readonly "_tag": "refused", readonly "code"?: "different-account", readonly "detail": string } | { readonly "_tag": "interrupted" }, readonly "report"?: Objects_13, readonly "startedAt": string, readonly "updatedAt": string };
395
- type ProjectMachineWorking = { readonly "projectId": string, readonly "projectTitle": string, readonly "admittedBy"?: "join-code" | "client-broker" | "account", readonly "seatHealth"?: SeatHealth };
396
- type ProjectMachineJoinedHealth = { readonly "admittedBy"?: "join-code" | "client-broker" | "account", readonly "homeEnvironmentId": string, readonly "homeName"?: string, readonly "projectTitle"?: string, readonly "projectId": string, readonly "state": "active" | "rejected" | "checking" | "home-update-required", readonly "health"?: SeatHealth };
397
- type Objects_179 = { readonly "projectTask"?: Objects_174, readonly "instanceId"?: string, readonly "variant"?: string, readonly "targetVersion"?: string, readonly "command"?: string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "timeoutSeconds"?: number, readonly "minutes"?: number };
398
- type Union_3 = Arrays_6 | Arrays_7;
399
- type Union_4 = Objects_28 | undefined;
400
- type Union_68 = Objects_207 | undefined;
401
- type ThreadMembers = ReadonlyArray<ThreadMemberRef>;
22
+ type TurnIntentContinuation = { readonly round: number, readonly limit: number, readonly of?: string };
402
23
  type ThreadDirectoryRefreshMembers = ReadonlyArray<ThreadMemberRef>;
24
+ type ChildQuestionRequest = { readonly activityKind: "user-input.requested" | "question.requested", readonly questionIds: ReadonlyArray<string> };
25
+ type Objects_ = { readonly role: string, readonly name?: string, readonly value?: string, readonly description?: string, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } | null, readonly state?: { readonly active?: boolean | undefined, readonly busy?: boolean | undefined, readonly checked?: "on" | "off" | "mixed" | undefined, readonly editable?: boolean | undefined, readonly enabled?: boolean | undefined, readonly expanded?: boolean | undefined, readonly focused?: boolean | undefined, readonly selected?: boolean | undefined, readonly visible?: boolean | undefined }, readonly actions?: ReadonlyArray<string>, readonly children: ReadonlyArray<Objects_> };
26
+ type CommunicationChildReport = { readonly kind: "child.settled" | "child.failed" | "child.stopped" | "child.approval" | "child.question", readonly requestId?: string };
27
+ type ProviderProbeRecovery = { readonly action: "retry" | "install" | "sign-in" | "update", readonly retryAt?: string | undefined } | undefined;
28
+ type Union_ = { readonly type: "identifier", readonly name: string } | { readonly type: "not", readonly node: Union_ } | { readonly type: "and", readonly left: Union_, readonly right: Union_ } | { readonly type: "or", readonly left: Union_, readonly right: Union_ };
29
+ type PluginApiVersionRange = { readonly min: number, readonly max: number };
30
+ type MachineLogRecord = { readonly time: string, readonly level?: string, readonly message?: unknown, readonly cause?: string, readonly annotations?: { readonly [x: string]: unknown }, readonly clipped?: boolean };
31
+ type Objects_1 = { readonly role: string, readonly name?: string, readonly value?: string, readonly description?: string, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } | null, readonly state?: { readonly active?: boolean, readonly busy?: boolean, readonly checked?: "on" | "off" | "mixed", readonly editable?: boolean, readonly enabled?: boolean, readonly expanded?: boolean, readonly focused?: boolean, readonly selected?: boolean, readonly visible?: boolean }, readonly actions?: ReadonlyArray<string>, readonly children: ReadonlyArray<Objects_1> };
32
+ type Objects_2 = { readonly role: string, readonly name?: string, readonly value?: string, readonly description?: string, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } | null, readonly state?: { readonly active?: boolean, readonly busy?: boolean, readonly checked?: "on" | "off" | "mixed", readonly editable?: boolean, readonly enabled?: boolean, readonly expanded?: boolean, readonly focused?: boolean, readonly selected?: boolean, readonly visible?: boolean }, readonly actions?: ReadonlyArray<string>, readonly children: ReadonlyArray<Objects_2> };
33
+ type Objects_3 = { readonly role: string, readonly name?: string, readonly value?: string, readonly description?: string, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } | null, readonly state?: { readonly active?: boolean, readonly busy?: boolean, readonly checked?: "on" | "off" | "mixed", readonly editable?: boolean, readonly enabled?: boolean, readonly expanded?: boolean, readonly focused?: boolean, readonly selected?: boolean, readonly visible?: boolean }, readonly actions?: ReadonlyArray<string>, readonly children: ReadonlyArray<Objects_3> };
34
+ type SessionCleanupRetryInput = { readonly threadId: string };
35
+ type SessionCleanupRecovered = { readonly status: "recovered" | "already-recovered" };
36
+ type SessionCleanupBlocked = { readonly status: "blocked", readonly code: "cleanup-exit-unconfirmed" | "cleanup-exit-processing" | "cleanup-stop-commit" | "cleanup-credentials" | "cleanup-session-record" | "cleanup-execution-lease" };
37
+ type DatabaseSpaceInput = { };
38
+ type DatabaseSpaceStatus = { readonly databaseBytes: number, readonly walBytes: number, readonly reusableBytes: number, readonly mode: "none" | "full" | "incremental", readonly conversion: "ready" | "disk-space" | "disk-check-failed" | "failed" | "next-startup", readonly availableBytes: number | null, readonly requiredBytes: number, readonly state: "idle" | "running" | "stopped" | "completed" | "blocked" | "failed", readonly reclaimedBytes: number, readonly targetBytes: number, readonly unavailableReason: "not-converted" | "reader" | "no-free-pages" | null };
39
+ type CommunicationPostAddressInput = { readonly workItemId: string } | { readonly threadId: string } | { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly principalId: string, readonly memberId?: string } | { readonly remoteThread: { readonly environmentId: string, readonly threadId: string, readonly projectId?: string } } | { readonly group: { readonly threadId: string } };
40
+ type CommunicationPostReplyInput = { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string };
41
+ type CommunicationPostRecipientInput = { readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string };
42
+ type CommunicationPostAttachmentPath = { readonly path: string, readonly name?: string, readonly mimeType?: string };
43
+ type CommunicationPostAttachmentRef = { readonly attachmentId: string, readonly name: string, readonly mimeType?: string, readonly sourcePath?: string };
44
+ type CommunicationPostResult = { readonly postId: string, readonly recipientWarnings?: ReadonlyArray<{ readonly code: "recipient-read-only" | "recipient-continued" | "recipient-not-running" | "recipient-queue-paused" | "recipient-queue-resumed" | "recipient-unanswered-questions" | "recipient-wake-paused" | "group-without-lead" | "group-lead-unavailable", readonly detail: string, readonly threadId?: string }> };
45
+ type CommunicationPostChange = { readonly projectId: string, readonly requestId?: string, readonly postId: string };
46
+ type CommunicationPostBindParticipantInput = { readonly threadId: string } | { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly principalId: string, readonly memberId?: string };
47
+ type CommunicationPostBindResult = { readonly postId: string, readonly targetKey: string };
48
+ type CommunicationPostNotification = { readonly kind: "child-report", readonly sourceThreadId: string, readonly childReport: CommunicationChildReport } | { readonly kind: "plugin-notice", readonly sourceThreadId: string };
49
+ type CommunicationPostNotificationResolution = { readonly resolution: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled", readonly at: string };
50
+ type CommunicationPostMarkReadItem = { readonly postId: string, readonly targetKey: string };
51
+ type CommunicationPostMarkReadResult = { readonly marked: number };
52
+ type ThreadMemberThreadRefInput = { readonly kind: "thread", readonly environmentId: string, readonly threadId: string };
53
+ type ThreadMembersSource = "implicit" | "explicit" | "line";
403
54
  type ThreadMembersStateMembers = ReadonlyArray<ThreadMemberRef>;
404
- type Union_14 = Objects_39 | null;
405
- type Union_77 = Objects_235 | null;
406
- type Union_22 = Objects_45 | Objects_46 | Objects_47 | Objects_48 | Objects_49 | Objects_50 | Objects_51 | Objects_52 | Objects_53 | Objects_54 | Objects_55 | Objects_56 | Objects_57 | Objects_58 | undefined;
407
- type Union_28 = { readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Union_29 } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Union_31 };
408
- type Union_36 = { readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Union_29, readonly "path"?: string } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Union_31, readonly "path"?: string };
409
- type Union_37 = Objects_78 | null;
410
- type Arrays_12 = ReadonlyArray<{ readonly "key": string, readonly "role": "process" | "background", readonly "member"?: string, readonly "participant": Union_33 | null, readonly "scope": Objects_80 | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "stages": { readonly "handedOff": Objects_78 | null, readonly "replied": { readonly "recordId": string, readonly "at": string } | null } }>;
411
- type CommunicationPostAddressInput = { readonly "workItemId": string } | { readonly "threadId": string } | Objects_88 | { readonly "principalId": string, readonly "memberId"?: string } | { readonly "remoteThread": Objects_90 } | { readonly "group": { readonly "threadId": string } };
412
- type CommunicationPostBindParticipantInput = { readonly "threadId": string } | Objects_88 | Objects_89;
413
- type Union_58 = Objects_175 | { readonly "kind": "agent", readonly "threadId": string } | Objects_176 | { readonly "kind": "member", readonly "memberId": string };
414
- type Union_94 = Objects_175 | null;
415
- type Union_96 = Objects_175 | { readonly "kind": "local-cli", readonly "environmentId": string } | { readonly "kind": "seat", readonly "seatId": string } | { readonly "kind": "agent", readonly "threadId": string } | Objects_176 | { readonly "kind": "plugin", readonly "pluginId": string } | Objects_162;
416
- type Union_56 = Objects_156 | Objects_157 | Objects_158 | Objects_159 | Objects_160 | Objects_161 | Objects_162;
417
- type Union_59 = Objects_156 | Objects_159 | Objects_160 | { readonly "kind": "member", readonly "memberId": string };
418
- type Union_60 = Objects_156 | Objects_159 | Objects_160;
419
- type Union_62 = Objects_156 | null;
420
- type Objects_118 = { readonly "providers": Arrays_13 };
421
- type Objects_110 = { readonly "revision": string, readonly "status": "healthy" | "stopped" | "conflict" | "unknown", readonly "stateDir": string, readonly "runtimeRoot": string, readonly "currentVersion": string | null, readonly "instances": Arrays_20, readonly "repairSupported": boolean, readonly "operation": { readonly "id": string, readonly "policy": "when-idle" | "now", readonly "phase": "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly "targetVersion": string, readonly "startedAt": string, readonly "updatedAt": string, readonly "reason": "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | null, readonly "detail"?: string, readonly "backupPath": string | null } | null, readonly "windowsProcessTreeProtection"?: { readonly "status": "active" } | { readonly "status": "no-helper" } | { readonly "status": "assign-failed", readonly "errorCode": number } | { readonly "status": "helper-failed" } | undefined, readonly "windowsProcessTreeProtectionExemptions"?: Arrays_21, readonly "windowsProcessTreeProtectionExplicitBreakaways"?: Arrays_22 };
422
- type Objects_113 = { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_44 };
423
- type ThreadMemberInputPersonRef = { readonly "kind": "person", readonly "person": ThreadMemberInputPerson };
424
- type Union_73 = { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "assistantMessageId": string | null, readonly "userMessageId"?: string | undefined, readonly "modelSelection"?: Objects_228 | undefined, readonly "sourceProposedPlan"?: { readonly "threadId": string, readonly "planId": string } | undefined, readonly "waitSpans"?: Union_74, readonly "runSegments"?: Union_11 } | null;
425
- type Union_84 = Objects_45 | Objects_240 | Objects_241 | Objects_242 | Objects_243 | Objects_244 | Objects_245 | Objects_246 | Objects_247 | Objects_248 | Objects_249 | Objects_56 | Objects_57 | Objects_250 | undefined;
426
- type Objects_15 = { readonly "status": Objects_12 };
427
- type ProjectMachineByMachine = { readonly "environmentId": string, readonly "name": string, readonly "online": boolean, readonly "connection": "stream" | "polling" | "none", readonly "lastSeenAt"?: string, readonly "memberUpdateRequired"?: true, readonly "projects": ReadonlyArray<ProjectMachineWorking> };
428
- type Objects_178 = { readonly "environmentId": string, readonly "actionId": string, readonly "input"?: Objects_179, readonly "status": "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly "progress"?: Objects_180, readonly "prompt"?: Objects_181, readonly "result"?: Objects_182, readonly "failure"?: Objects_183, readonly "autoApproved"?: true, readonly "localAgent"?: true, readonly "accountOriginEnvironmentId"?: string, readonly "rememberProject"?: boolean, readonly "approval"?: string, readonly "logCommentId"?: string, readonly "logPostId"?: string };
429
- type Objects_202 = { readonly "environmentId": string, readonly "actionId": string, readonly "input"?: Objects_179, readonly "status": "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly "progress"?: Objects_180, readonly "prompt"?: Objects_181, readonly "result"?: Objects_182, readonly "failure"?: Objects_183, readonly "autoApproved"?: true, readonly "localAgent"?: true, readonly "accountOriginEnvironmentId"?: string, readonly "rememberProject"?: boolean, readonly "approval"?: string, readonly "logCommentId"?: string, readonly "logPostId"?: string };
430
- type Objects_25 = { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_3 };
431
- type Objects_115 = { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_3 };
432
- type ThreadMembersState = { readonly "projectId": string, readonly "thread": Objects_33, readonly "source": ThreadMembersSource, readonly "version": number, readonly "members": ThreadMembersStateMembers, readonly "workLineId"?: string };
433
- type Union_35 = ReadonlyArray<Union_36> | undefined;
434
- type Arrays_42 = ReadonlyArray<Union_36>;
435
- type Objects_258 = { readonly "outcome": "passed" | "failed" | "skipped" | "not-run", readonly "at": string, readonly "by": Union_96, readonly "summary"?: string };
436
- type Objects_164 = { readonly "experienceId": string, readonly "revision": number, readonly "baseRevision": number | null, readonly "author": Union_56, readonly "createdAt": string, readonly "title"?: string, readonly "applicability"?: string, readonly "body": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "bodyWindow"?: Objects_59 };
437
- type Objects_169 = { readonly "pageId": string, readonly "revision": number, readonly "baseRevision": number | null, readonly "restoredFromRevision": number | null, readonly "author": Union_56, readonly "createdAt": string, readonly "title": string | null, readonly "changeSummary": string | null, readonly "body": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "bodyWindow"?: Objects_59 };
438
- type Objects_171 = { readonly "release": number, readonly "pages": Arrays_36, readonly "itemCount": number, readonly "itemHighWater": number, readonly "requiresAck": boolean, readonly "restoredFromRelease": number | null, readonly "sourceExperience": Union_57, readonly "publishedBy": Union_56, readonly "publishedAt": string };
439
- type Objects_189 = { readonly "workLineId": string, readonly "projectId": string, readonly "name": string, readonly "leadMemberId": string | null, readonly "memberIds": ReadonlyArray<string>, readonly "threadId": string | null, readonly "roomMemberId"?: string, readonly "version": number, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "pause"?: { readonly "at": string, readonly "by": Union_56, readonly "reason"?: string }, readonly "memberPauses"?: ReadonlyArray<{ readonly "memberId": string, readonly "at": string, readonly "by": Union_56, readonly "reason"?: string }> };
440
- type Objects_197 = { readonly "outcome": "passed" | "failed" | "skipped" | "not-run", readonly "at": string, readonly "by": Union_56, readonly "summary"?: string };
441
- type Arrays_37 = ReadonlyArray<Union_59>;
442
- type Arrays_40 = ReadonlyArray<Union_60>;
443
- type Union_95 = { readonly "environmentId": string, readonly "modelSelection": Objects_113, readonly "threadId"?: string } | null;
55
+ type ThreadMembersState = { readonly projectId: string, readonly thread: { readonly kind: "thread", readonly environmentId: string, readonly threadId: string }, readonly source: ThreadMembersSource, readonly version: number, readonly members: ThreadMembersStateMembers, readonly workLineId?: string };
56
+ type ThreadMemberInputMemberRef = { readonly kind: "member", readonly memberId: string };
57
+ type ThreadMemberInputAccount = { readonly kind: "account", readonly userId: string };
58
+ type ThreadMemberInputLocalOwner = { readonly kind: "local-owner", readonly environmentId: string };
59
+ type ThreadMemberInputPerson = ThreadMemberInputAccount | ThreadMemberInputLocalOwner;
60
+ type ThreadMemberInputPersonRef = { readonly kind: "person", readonly person: ThreadMemberInputPerson };
444
61
  type ThreadMemberInput = ThreadMemberInputMemberRef | ThreadMemberInputPersonRef | ThreadMemberThreadRefInput;
445
- type Objects_229 = { readonly "executionSelection"?: Union_68, readonly "nativeModeId"?: string | null | undefined, readonly "branch": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: Union_69, readonly "linkedPullRequest"?: Union_70, readonly "origin"?: Union_71, readonly "presetId"?: string | null | undefined, readonly "members"?: ThreadMembers_1, readonly "createdBy"?: Union_72, readonly "creatorPrincipal"?: ThreadCreatorPrincipal_1, readonly "latestTurn": Union_73, readonly "stopRequestedAt"?: string | null, readonly "settledOverride"?: "settled" | "active" | null | undefined, readonly "settledAt"?: string | null | undefined, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "titleRegeneration"?: Union_75, readonly "titleState"?: Union_76, readonly "session": Union_77, readonly "latestUserMessageAt": string | null, readonly "userTurnCount"?: number | undefined, readonly "queuedMessageCount"?: number | undefined, readonly "awaitingPersonReplyCount"?: number | undefined, readonly "pendingAsyncQuestionCount"?: number | undefined, readonly "preview"?: string | null | undefined, readonly "previewDeliveryCount"?: number | undefined, readonly "deliveredFileCount"?: number | undefined, readonly "latestDeliveryAt"?: string | null | undefined, readonly "hasPendingApprovals": boolean, readonly "pendingDecisionActivityId"?: string | undefined, readonly "hasPendingUserInput": boolean, readonly "askRoute"?: Union_78, readonly "hasActionableProposedPlan": boolean, readonly "continuationCheck"?: ThreadContinuationCheckOrNull_1 };
446
- type Objects_253 = { readonly "nativeSessionImported"?: true, readonly "id": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_228, readonly "executionSelection"?: Union_68, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "nativeModeId"?: string | null | undefined, readonly "interactionMode"?: "default" | "plan" | undefined, readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: Union_69, readonly "linkedPullRequest"?: Union_70, readonly "origin"?: Union_71, readonly "forkedFrom"?: Union_85, readonly "presetId"?: string | null | undefined, readonly "memberId"?: string | undefined, readonly "members"?: ThreadMembers_1, readonly "createdBy"?: Union_72, readonly "creatorPrincipal"?: ThreadCreatorPrincipal_1, readonly "latestTurn": Union_73, readonly "stopRequestedAt"?: string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt"?: string | null | undefined, readonly "settledOverride"?: "settled" | "active" | null | undefined, readonly "settledAt"?: string | null | undefined, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "titleRegeneration"?: Union_75, readonly "titleState"?: Union_76, readonly "session": Union_77, readonly "latestUserMessageAt": string | null, readonly "userTurnCount"?: number | undefined, readonly "queuedMessageCount"?: number | undefined, readonly "awaitingPersonReplyCount"?: number | undefined, readonly "pendingAsyncQuestionCount"?: number | undefined, readonly "preview"?: string | null | undefined, readonly "previewDeliveryCount"?: number | undefined, readonly "deliveredFileCount"?: number | undefined, readonly "latestDeliveryAt"?: string | null | undefined, readonly "hasPendingApprovals": boolean, readonly "pendingDecisionActivityId"?: string | undefined, readonly "hasPendingUserInput": boolean, readonly "askRoute"?: Union_78, readonly "hasActionableProposedPlan": boolean, readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined, readonly "continuationCheck"?: ThreadContinuationCheckOrNull_1, readonly "backgroundMonitorCount"?: number | undefined, readonly "planProgress"?: Union_79 };
447
- type Objects_238 = { readonly "items": ReadonlyArray<{ readonly "rewrite"?: Union_80, readonly "id": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "attachments"?: ReadonlyArray<{ readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number }> | undefined, readonly "turnId": string | null, readonly "streaming": boolean, readonly "author"?: Union_81, readonly "recordId"?: string | undefined, readonly "modelSelection"?: Union_82, readonly "source"?: Union_83, readonly "origin"?: Union_84, readonly "createdAt": string, readonly "updatedAt": string, readonly "attachmentsTotal"?: number, readonly "textWindow"?: Objects_59 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "total"?: number };
448
- type Union_9 = { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "assistantMessageId": string | null, readonly "userMessageId"?: string | undefined, readonly "modelSelection"?: Objects_25 | undefined, readonly "sourceProposedPlan"?: { readonly "threadId": string, readonly "planId": string } | undefined, readonly "waitSpans"?: Union_10, readonly "runSegments"?: Union_11 } | null;
449
- type Union_20 = Objects_25 | undefined;
450
- type Objects_64 = { readonly "id": string, readonly "title": string, readonly "workspaceRoot": string, readonly "purpose"?: "conversation" | "project" | undefined, readonly "homeEnvironmentId"?: string | null | undefined, readonly "folders"?: ReadonlyArray<{ readonly "id": string, readonly "path": string, readonly "kind"?: "user" | "managed" | undefined, readonly "attachedAt": string, readonly "detachedAt"?: string | null | undefined, readonly "clone"?: { readonly "state": "cloning" | "failed", readonly "remoteUrl": string, readonly "failureKind"?: "cancelled" | "interrupted" | "git" | undefined, readonly "failureCategory"?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly "failure"?: string | undefined, readonly "createdDirectory"?: boolean | undefined, readonly "startedAt": string } | undefined, readonly "sharedSpaceId"?: string | undefined, readonly "sharedSpaceAttachState"?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly "defaultFolderId"?: string | null | undefined, readonly "repositoryIdentity"?: { readonly "canonicalKey": string, readonly "locator": { readonly "source": "git-remote", readonly "remoteName": string, readonly "remoteUrl": string }, readonly "rootPath"?: string, readonly "displayName"?: string, readonly "provider"?: string, readonly "owner"?: string, readonly "name"?: string } | null | undefined, readonly "defaultModelSelection": Objects_25 | null, readonly "faviconPath"?: string | null | undefined, readonly "projectIcon"?: { readonly "kind": "lucide", readonly "name": string, readonly "color": "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly "kind": "emoji", readonly "emoji": string } | null | undefined, readonly "scripts": ReadonlyArray<Objects_65>, readonly "sortOrderKey"?: string | null | undefined, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt"?: string | null | undefined };
451
- type Objects_100 = { readonly "enableProviderUpdateChecks": boolean, readonly "enableAgentBrowserAccess": boolean, readonly "browserRetentionBudgetEnabled": boolean, readonly "machineBrowserDefaultViewport"?: Union_1, readonly "machineBrowserDefaultZoomFactor"?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly "machineBrowserDefaultAppearance"?: "system" | "light" | "dark", readonly "enableAgentThreadDelegation": boolean, readonly "enableAgentSelfDevelopment": boolean, readonly "machineTaskConfirmation": { readonly "actionIds": Arrays_16, readonly "projectIds": ReadonlyArray<string>, readonly "remoteProjectTrust"?: ReadonlyArray<{ readonly "homeEnvironmentId": string, readonly "projectId": string }> }, readonly "enableHeapSnapshot": boolean, readonly "agentThreadDelegationMaxDepth": number, readonly "pluginUpdateCheck": boolean, readonly "backgroundActivityProfile": "balanced" | "performance" | "battery-saver", readonly "environmentIcon": "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly "defaultRuntimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "addProjectBaseDirectory": string, readonly "textGenerationModelSelection": Objects_25 | null, readonly "sourceControlWritingStyle": { readonly "mode": "repo_conventions" | "conventional_commits" | "custom", readonly "customInstructions": string, readonly "followChangeRequestTemplates": boolean }, readonly "sourceControlWriterModelSelection": Objects_25 | null, readonly "dismissedDiscoveredDrivers": Arrays_17, readonly "defaultProxyId": string | null, readonly "wallpaper": { readonly "base": Objects_101, readonly "sidebar": Objects_101 | null, readonly "workspace": Objects_101 | null, readonly "chat": Objects_101 | null }, readonly "requireManualPairingForNewDevices": boolean, readonly "tunnelForceTcp": boolean, readonly "automaticGitFetchInterval": number, readonly "providerHealthRefreshInterval": number, readonly "backgroundActivity": { readonly "schemaVersion": 1, readonly "profile": "balanced" | "performance" | "battery-saver" | "custom", readonly "baseProfile"?: "balanced" | "performance" | "battery-saver", readonly "overrides": Objects_102 }, readonly "npmRegistry": string, readonly "proxies": { readonly [x: string]: { readonly "displayName"?: string | undefined, readonly "protocol": "http" | "https", readonly "host": string, readonly "port": number, readonly "bypass"?: string } }, readonly "plugins": { readonly "mcpServers": { readonly [x: string]: { readonly "name": string, readonly "transport": Union_41, readonly "enabled": boolean, readonly "providers": Objects_103, readonly "catalogId"?: string | undefined, readonly "oauth"?: Union_42, readonly "addedBy"?: Union_43 } }, readonly "skills": { readonly [x: string]: { readonly "name": string, readonly "source": Objects_104 | Objects_105 | Objects_106, readonly "enabled"?: boolean | undefined, readonly "modelInvocable": boolean, readonly "userInvocable": boolean, readonly "providers": Objects_107 } } }, readonly "observability": Objects_108 };
452
- type Objects_148 = { readonly "scheduleId": string, readonly "projectId": string, readonly "name": string, readonly "prompt": string, readonly "repeat": Objects_71, readonly "modelSelection": Objects_25, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "workspace": "project" | "worktree", readonly "presetId"?: string, readonly "enabled": boolean, readonly "nextRunAt": string, readonly "createdBy": Objects_149 | { readonly "kind": "thread", readonly "threadId": string } | { readonly "kind": "plugin", readonly "pluginId": string }, readonly "createdAt": string, readonly "updatedAt": string };
453
- type Union_63 = { readonly "environmentId": string, readonly "modelSelection": Objects_115, readonly "threadId"?: string } | null;
454
- type Objects_87 = { readonly "recordId": string, readonly "from": Union_33, readonly "to": Union_34, readonly "replyTo": string | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "createdAt": string, readonly "stages": Objects_77, readonly "idempotencyKey"?: string | undefined, readonly "runId"?: string | undefined, readonly "toRole"?: string | undefined, readonly "attachments"?: Union_35, readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable", readonly "projectId": string | null, readonly "sequence": number, readonly "claim": Union_37, readonly "group"?: Objects_79, readonly "mentions"?: Arrays_11, readonly "targets"?: Arrays_12, readonly "workItem"?: Objects_81, readonly "childReport"?: CommunicationChildReport, readonly "textPreview": string | null, readonly "textTruncated": boolean };
455
- type Objects_185 = { readonly "commentId": string, readonly "workItemId": string, readonly "projectId": string, readonly "sequence": number, readonly "revision": number, readonly "author": Union_56, readonly "body": string | null, readonly "bodyWindow"?: Objects_59, readonly "bodyState": "present" | "erased" | "unavailable", readonly "mentions": Arrays_40, readonly "parentId": string | null, readonly "createdAt": string, readonly "editedAt": string | null };
456
62
  type ThreadMembersInput = ReadonlyArray<ThreadMemberInput>;
457
- type ThreadMembersInput_1 = ReadonlyArray<ThreadMemberInput>;
458
- type Objects_226 = { readonly "threadId": string, readonly "nativeSessionImported"?: true, readonly "projectId": string, readonly "title": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "parentThreadId": string | null, readonly "memberId"?: string, readonly "forkedFrom": Union_67, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "modelSelection": Objects_228, readonly "sessionStatus": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly "sessionFailureCategory"?: string, readonly "latestTurnState": "running" | "interrupted" | "completed" | "error" | null, readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "worktreePath"?: string | null, readonly "delegationDepth"?: number, readonly "summary"?: Objects_229, readonly "runtime"?: Objects_236, readonly "machineId": string };
459
- type Objects_27 = { readonly "executionSelection"?: Union_4, readonly "nativeModeId"?: string | null | undefined, readonly "branch": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: Union_5, readonly "linkedPullRequest"?: Union_6, readonly "origin"?: Union_7, readonly "presetId"?: string | null | undefined, readonly "members"?: ThreadMembers, readonly "createdBy"?: Union_8, readonly "creatorPrincipal"?: ThreadCreatorPrincipal, readonly "latestTurn": Union_9, readonly "stopRequestedAt"?: string | null, readonly "settledOverride": "settled" | "active" | null, readonly "settledAt": string | null, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "titleRegeneration"?: Union_12, readonly "titleState"?: Union_13, readonly "session": Union_14, readonly "latestUserMessageAt": string | null, readonly "userTurnCount"?: number | undefined, readonly "queuedMessageCount"?: number | undefined, readonly "awaitingPersonReplyCount"?: number | undefined, readonly "pendingAsyncQuestionCount"?: number | undefined, readonly "preview"?: string | null | undefined, readonly "previewDeliveryCount"?: number | undefined, readonly "deliveredFileCount"?: number | undefined, readonly "latestDeliveryAt"?: string | null | undefined, readonly "hasPendingApprovals": boolean, readonly "pendingDecisionActivityId"?: string | undefined, readonly "hasPendingUserInput": boolean, readonly "askRoute"?: Union_16, readonly "hasActionableProposedPlan": boolean, readonly "continuationCheck"?: ThreadContinuationCheckOrNull };
460
- type Objects_66 = { readonly "nativeSessionImported"?: true, readonly "id": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_25, readonly "executionSelection"?: Union_4, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "nativeModeId"?: string | null | undefined, readonly "interactionMode": "default" | "plan", readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: Union_5, readonly "linkedPullRequest"?: Union_6, readonly "origin"?: Union_7, readonly "forkedFrom"?: Union_23, readonly "presetId"?: string | null | undefined, readonly "memberId"?: string | undefined, readonly "members"?: ThreadMembers, readonly "createdBy"?: Union_8, readonly "creatorPrincipal"?: ThreadCreatorPrincipal, readonly "latestTurn": Union_9, readonly "stopRequestedAt"?: string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "settledOverride": "settled" | "active" | null, readonly "settledAt": string | null, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "titleRegeneration"?: Union_12, readonly "titleState"?: Union_13, readonly "session": Union_14, readonly "latestUserMessageAt": string | null, readonly "userTurnCount"?: number | undefined, readonly "queuedMessageCount"?: number | undefined, readonly "awaitingPersonReplyCount"?: number | undefined, readonly "pendingAsyncQuestionCount"?: number | undefined, readonly "preview"?: string | null | undefined, readonly "previewDeliveryCount"?: number | undefined, readonly "deliveredFileCount"?: number | undefined, readonly "latestDeliveryAt"?: string | null | undefined, readonly "hasPendingApprovals": boolean, readonly "pendingDecisionActivityId"?: string | undefined, readonly "hasPendingUserInput": boolean, readonly "askRoute"?: Union_16, readonly "hasActionableProposedPlan": boolean, readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined, readonly "continuationCheck"?: ThreadContinuationCheckOrNull, readonly "backgroundMonitorCount"?: number | undefined, readonly "planProgress"?: Union_17 };
461
- type Objects_43 = { readonly "items": ReadonlyArray<{ readonly "rewrite"?: Union_18, readonly "id": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "attachments"?: ReadonlyArray<{ readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number }> | undefined, readonly "turnId": string | null, readonly "streaming": boolean, readonly "author"?: Union_19, readonly "recordId"?: string | undefined, readonly "modelSelection"?: Union_20, readonly "source"?: Union_21, readonly "origin"?: Union_22, readonly "createdAt": string, readonly "updatedAt": string, readonly "attachmentsTotal"?: number, readonly "textWindow"?: Objects_59 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "total"?: number };
462
- type Objects_86 = { readonly "items": ReadonlyArray<Objects_87>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
463
- type Objects_23 = { readonly "threadId": string, readonly "nativeSessionImported"?: true, readonly "projectId": string, readonly "title": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "parentThreadId": string | null, readonly "memberId"?: string, readonly "forkedFrom": Union_2, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "modelSelection": Objects_25, readonly "sessionStatus": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly "sessionFailureCategory"?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly "latestTurnState": "running" | "interrupted" | "completed" | "error" | null, readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "worktreePath"?: string | null, readonly "delegationDepth"?: number, readonly "summary"?: Objects_27, readonly "runtime"?: Objects_40, readonly "machineId": string };
464
- type Objects_61 = { readonly "threadId": string, readonly "nativeSessionImported"?: true, readonly "projectId": string, readonly "title": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "parentThreadId": string | null, readonly "memberId"?: string, readonly "forkedFrom": Union_2, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "modelSelection": Objects_25, readonly "sessionStatus": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly "sessionFailureCategory"?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly "latestTurnState": "running" | "interrupted" | "completed" | "error" | null, readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "worktreePath"?: string | null, readonly "delegationDepth"?: number, readonly "summary"?: Objects_27, readonly "runtime"?: Objects_40 };
465
- type Objects_60 = { readonly "items": ReadonlyArray<Objects_61>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "historyEpoch"?: string };
466
- type Objects_73 = { readonly "role": string, readonly "name"?: string, readonly "value"?: string, readonly "description"?: string, readonly "bounds": Union_30, readonly "state"?: Objects_74, readonly "actions"?: ReadonlyArray<string>, readonly "children": ReadonlyArray<Objects_73> };
467
- type Union_40 = { readonly "type": "identifier", readonly "name": string } | { readonly "type": "not", readonly "node": Union_40 } | { readonly "type": "and", readonly "left": Union_40, readonly "right": Union_40 } | { readonly "type": "or", readonly "left": Union_40, readonly "right": Union_40 };
468
- type Objects_205 = { readonly "role": string, readonly "name"?: string, readonly "value"?: string, readonly "description"?: string, readonly "bounds": { readonly "x": number, readonly "y": number, readonly "width": number, readonly "height": number } | null, readonly "state"?: { readonly "active"?: boolean, readonly "busy"?: boolean, readonly "checked"?: "on" | "off" | "mixed", readonly "editable"?: boolean, readonly "enabled"?: boolean, readonly "expanded"?: boolean, readonly "focused"?: boolean, readonly "selected"?: boolean, readonly "visible"?: boolean }, readonly "actions"?: ReadonlyArray<string>, readonly "children": ReadonlyArray<Objects_205> };
469
- type Objects_210 = { readonly "role": string, readonly "name"?: string, readonly "value"?: string, readonly "description"?: string, readonly "bounds": { readonly "x": number, readonly "y": number, readonly "width": number, readonly "height": number } | null, readonly "state"?: { readonly "active"?: boolean, readonly "busy"?: boolean, readonly "checked"?: "on" | "off" | "mixed", readonly "editable"?: boolean, readonly "enabled"?: boolean, readonly "expanded"?: boolean, readonly "focused"?: boolean, readonly "selected"?: boolean, readonly "visible"?: boolean }, readonly "actions"?: ReadonlyArray<string>, readonly "children": ReadonlyArray<Objects_210> };
470
- type Objects_212 = { readonly "role": string, readonly "name"?: string, readonly "value"?: string, readonly "description"?: string, readonly "bounds": { readonly "x": number, readonly "y": number, readonly "width": number, readonly "height": number } | null, readonly "state"?: { readonly "active"?: boolean, readonly "busy"?: boolean, readonly "checked"?: "on" | "off" | "mixed", readonly "editable"?: boolean, readonly "enabled"?: boolean, readonly "expanded"?: boolean, readonly "focused"?: boolean, readonly "selected"?: boolean, readonly "visible"?: boolean }, readonly "actions"?: ReadonlyArray<string>, readonly "children": ReadonlyArray<Objects_212> };
471
- type Objects_254 = { readonly "role": string, readonly "name"?: string, readonly "value"?: string, readonly "description"?: string, readonly "bounds": Union_30, readonly "state"?: Objects_74, readonly "actions"?: ReadonlyArray<string>, readonly "children": ReadonlyArray<Objects_254> };
472
- export type CommunicationWakeLoopsListInput = { readonly "threadId": string };
473
- export type CommunicationWakeLoopsListOutput = ReadonlyArray<{ readonly "threadId": string, readonly "peerThreadId"?: string, readonly "peerPluginId"?: string, readonly "peerRemote"?: { readonly "principalId": string, readonly "remoteThreadId": string }, readonly "heldActivityId"?: string, readonly "halfTrips": number, readonly "lastSender": string | null, readonly "updatedAt": string, readonly "waiting"?: number }>;
474
- export type CommunicationWakeLoopsResumeInput = { readonly "threadId": string, readonly "peerThreadId"?: string, readonly "peerPluginId"?: string, readonly "peerRemote"?: { readonly "principalId": string, readonly "remoteThreadId": string }, readonly "heldActivityId"?: string, readonly "requestId"?: string };
475
- export type CommunicationWakeLoopsResumeOutput = { readonly "sequence": number, readonly "result": { }, readonly "replayed"?: boolean };
476
- export type MachineSettingsBrowserRuntimeGetInput = Objects_;
477
- export type MachineSettingsBrowserRuntimeGetOutput = Union_;
478
- export type MachineSettingsBrowserRuntimeSubscribeInput = Objects_;
479
- export type MachineSettingsBrowserRuntimeSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Union_ };
480
- export type MachineSettingsBrowserRuntimePrepareInput = Objects_;
481
- export type MachineSettingsBrowserRuntimePrepareOutput = Union_;
482
- export type MachineSettingsBrowserRuntimeCancelInput = { readonly "preparationId": string };
483
- export type MachineSettingsBrowserRuntimeCancelOutput = Union_;
63
+ type ThreadMembersUpdateResult = { readonly thread: { readonly kind: "thread", readonly environmentId: string, readonly threadId: string }, readonly version: number };
64
+ type ThreadMemberRef_1 = { readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string };
65
+ type ThreadMembers_1 = ReadonlyArray<ThreadMemberRef_1>;
66
+ type ThreadCreatorAccount_1 = { readonly kind: "account", readonly userId: string };
67
+ type ThreadCreatorLocalOwner_1 = { readonly kind: "local-owner", readonly environmentId: string };
68
+ type ThreadCreatorPrincipal_1 = ThreadCreatorAccount_1 | ThreadCreatorLocalOwner_1;
69
+ type ThreadContinuationCheck_1 = { readonly turnId: string, readonly pluginIds: ReadonlyArray<string>, readonly startedAt: string };
70
+ type ThreadContinuationCheckOrNull_1 = ThreadContinuationCheck_1 | null;
71
+ type TurnIntentContinuation_1 = { readonly round: number, readonly limit: number, readonly of?: string };
72
+ type Objects_4 = { readonly role: string, readonly name?: string, readonly value?: string, readonly description?: string, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } | null, readonly state?: { readonly active?: boolean | undefined, readonly busy?: boolean | undefined, readonly checked?: "on" | "off" | "mixed" | undefined, readonly editable?: boolean | undefined, readonly enabled?: boolean | undefined, readonly expanded?: boolean | undefined, readonly focused?: boolean | undefined, readonly selected?: boolean | undefined, readonly visible?: boolean | undefined }, readonly actions?: ReadonlyArray<string>, readonly children: ReadonlyArray<Objects_4> };
73
+ export type CommunicationWakeLoopsListInput = { readonly threadId: string };
74
+ export type CommunicationWakeLoopsListOutput = ReadonlyArray<{ readonly threadId: string, readonly peerThreadId?: string, readonly peerPluginId?: string, readonly peerRemote?: { readonly principalId: string, readonly remoteThreadId: string }, readonly heldActivityId?: string, readonly halfTrips: number, readonly lastSender: string | null, readonly updatedAt: string, readonly waiting?: number }>;
75
+ export type CommunicationWakeLoopsResumeInput = { readonly threadId: string, readonly peerThreadId?: string, readonly peerPluginId?: string, readonly peerRemote?: { readonly principalId: string, readonly remoteThreadId: string }, readonly heldActivityId?: string, readonly requestId?: string };
76
+ export type CommunicationWakeLoopsResumeOutput = { readonly sequence: number, readonly result: { }, readonly replayed?: boolean };
77
+ export type MachineSettingsBrowserRuntimeGetInput = { };
78
+ export type MachineSettingsBrowserRuntimeGetOutput = { readonly status: "idle", readonly preparationId?: string, readonly updatedAt?: string } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "running", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly receivedBytes?: number, readonly totalBytes?: number } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "ready", readonly version: string, readonly sandboxed?: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "failed", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly reason: string, readonly detail: string, readonly retryable: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "cancelled" };
79
+ export type MachineSettingsBrowserRuntimeSubscribeInput = { };
80
+ export type MachineSettingsBrowserRuntimeSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly status: "idle", readonly preparationId?: string, readonly updatedAt?: string } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "running", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly receivedBytes?: number, readonly totalBytes?: number } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "ready", readonly version: string, readonly sandboxed?: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "failed", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly reason: string, readonly detail: string, readonly retryable: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "cancelled" } };
81
+ export type MachineSettingsBrowserRuntimePrepareInput = { };
82
+ export type MachineSettingsBrowserRuntimePrepareOutput = { readonly status: "idle", readonly preparationId?: string, readonly updatedAt?: string } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "running", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly receivedBytes?: number, readonly totalBytes?: number } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "ready", readonly version: string, readonly sandboxed?: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "failed", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly reason: string, readonly detail: string, readonly retryable: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "cancelled" };
83
+ export type MachineSettingsBrowserRuntimeCancelInput = { readonly preparationId: string };
84
+ export type MachineSettingsBrowserRuntimeCancelOutput = { readonly status: "idle", readonly preparationId?: string, readonly updatedAt?: string } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "running", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly receivedBytes?: number, readonly totalBytes?: number } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "ready", readonly version: string, readonly sandboxed?: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "failed", readonly stage: "checking" | "waiting-for-lock" | "downloading" | "verifying" | "extracting" | "starting" | "qualifying", readonly reason: string, readonly detail: string, readonly retryable: boolean } | { readonly preparationId: string, readonly updatedAt: string, readonly status: "cancelled" };
484
85
  export type MachineSettingsBrowserRetentionGetInput = { };
485
- export type MachineSettingsBrowserRetentionGetOutput = { readonly "state": "off" } | { readonly "state": "reclaiming" } | { readonly "state": "unavailable", readonly "reason": "monitor-not-running" | "snapshot-stale" | "attribution-unknown" };
86
+ export type MachineSettingsBrowserRetentionGetOutput = { readonly state: "off" } | { readonly state: "reclaiming" } | { readonly state: "unavailable", readonly reason: "monitor-not-running" | "snapshot-stale" | "attribution-unknown" };
486
87
  export type MachineSettingsBrowserProfilesGetInput = { };
487
- export type MachineSettingsBrowserProfilesGetOutput = Objects_1;
488
- export type MachineSettingsBrowserProfilesUpdateInput = { readonly "profiles": ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "kind": "persistent" | "incognito" }>, readonly "agentAccess": { readonly [x: string]: boolean }, readonly "defaultProfileId": string };
489
- export type MachineSettingsBrowserProfilesUpdateOutput = Objects_1;
88
+ export type MachineSettingsBrowserProfilesGetOutput = { readonly profiles: ReadonlyArray<{ readonly id: string, readonly name: string, readonly kind: "persistent" | "incognito" }>, readonly agentAccess: { readonly [x: string]: boolean }, readonly defaultProfileId: string };
89
+ export type MachineSettingsBrowserProfilesUpdateInput = { readonly profiles: ReadonlyArray<{ readonly id: string, readonly name: string, readonly kind: "persistent" | "incognito" }>, readonly agentAccess: { readonly [x: string]: boolean }, readonly defaultProfileId: string };
90
+ export type MachineSettingsBrowserProfilesUpdateOutput = { readonly profiles: ReadonlyArray<{ readonly id: string, readonly name: string, readonly kind: "persistent" | "incognito" }>, readonly agentAccess: { readonly [x: string]: boolean }, readonly defaultProfileId: string };
490
91
  export type MachineSettingsBrowserCookiesFirefoxProfilesInput = { };
491
- export type MachineSettingsBrowserCookiesFirefoxProfilesOutput = ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "isDefault": boolean }>;
492
- export type MachineSettingsBrowserCookiesChromiumProfilesInput = { readonly "browser"?: "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet" };
493
- export type MachineSettingsBrowserCookiesChromiumProfilesOutput = ReadonlyArray<{ readonly "browser": "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet", readonly "browserName": string, readonly "profile": string, readonly "label": string, readonly "isDefault": boolean }>;
494
- export type MachineSettingsBrowserCookiesImportInput = { readonly "profileId": string, readonly "source": { readonly "kind": "file", readonly "text": string } | { readonly "kind": "firefox", readonly "firefoxProfileId": string } | { readonly "kind": "chromium", readonly "browser": "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet", readonly "profile": string }, readonly "threadId"?: string };
495
- export type MachineSettingsBrowserCookiesImportOutput = { readonly "status": "imported", readonly "counts": { readonly "imported": number, readonly "expired": number, readonly "invalid": number, readonly "partitioned": number, readonly "prefixViolation": number, readonly "writeFailed": number }, readonly "machines": 1 } | { readonly "status": "rejected", readonly "reason": "too-large" | "unrecognized-format" | "incognito" | "unreadable" | "source-busy" | "source-missing" | "unsupported" } | { readonly "status": "awaiting-approval", readonly "requestId": string, readonly "threadId": string, readonly "note": string } | { readonly "status": "rejected", readonly "reason": "approval-pending", readonly "requestId": string, readonly "threadId": string, readonly "note": string };
496
- export type ThreadsBrowserOpenInput = { readonly "threadId": string, readonly "url"?: string, readonly "asset"?: { readonly "_tag": "workspace-file", readonly "path": string, readonly "cwd"?: string } | { readonly "_tag": "media-file", readonly "path": string, readonly "cwd"?: string } | { readonly "_tag": "attachment", readonly "attachmentId": string, readonly "fileName"?: string }, readonly "viewport"?: Objects_2 | Objects_3 | Objects_4, readonly "profileId"?: string, readonly "executionHost"?: "desktop" | "environment" };
497
- export type ThreadsBrowserOpenOutput = { readonly "threadId": string, readonly "tabId": string, readonly "navStatus": { readonly "_tag": "Idle" } | { readonly "_tag": "Loading", readonly "url": string, readonly "title": string } | { readonly "_tag": "Success", readonly "url": string, readonly "title": string } | { readonly "_tag": "LoadFailed", readonly "url": string, readonly "title": string, readonly "code": number, readonly "description": string }, readonly "canGoBack": boolean, readonly "canGoForward": boolean, readonly "viewport"?: Union_1 | undefined, readonly "profileId"?: string | undefined, readonly "executionHost"?: "desktop" | "environment" | undefined, readonly "favicon"?: { readonly "dataUrl": string, readonly "pageUrl": string, readonly "capturedAt": number } | undefined, readonly "recording"?: Objects_5 | undefined, readonly "audible"?: boolean | undefined, readonly "audioMuted"?: boolean | undefined, readonly "updatedAt": string };
498
- export type ThreadsBrowserStateGetInput = Objects_6;
499
- export type ThreadsBrowserStateGetOutput = Objects_7;
500
- export type ThreadsBrowserStateSubscribeInput = Objects_6;
501
- export type ThreadsBrowserStateSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Objects_7 };
502
- export type ThreadsBrowserInputInput = { readonly "threadId": string, readonly "tabId": string, readonly "pageEpoch": string, readonly "controlEpoch": number, readonly "viewportEpoch": number, readonly "viewerId": string, readonly "input": { readonly "_tag": "reload", readonly "ignoreCache"?: boolean } | { readonly "_tag": "back" } | { readonly "_tag": "forward" } | { readonly "_tag": "setColorScheme", readonly "colorScheme": "system" | "light" | "dark" } | { readonly "_tag": "pointer", readonly "x": number, readonly "y": number, readonly "button": "left" | "middle" | "right" } | { readonly "_tag": "pointerMove", readonly "x": number, readonly "y": number, readonly "buttons"?: number } | { readonly "_tag": "pointerDown", readonly "x": number, readonly "y": number, readonly "button": "left" | "middle" | "right" } | { readonly "_tag": "pointerUp", readonly "x": number, readonly "y": number, readonly "button": "left" | "middle" | "right" } | { readonly "_tag": "wheel", readonly "x": number, readonly "y": number, readonly "deltaX": number, readonly "deltaY": number } | { readonly "_tag": "key", readonly "key": string, readonly "modifiers"?: number, readonly "editingCommand"?: "Cut" | "Copy" | "SelectAll" } | { readonly "_tag": "text", readonly "text": string } | { readonly "_tag": "navigate", readonly "url": string } | { readonly "_tag": "resize", readonly "width": number, readonly "height": number } | { readonly "_tag": "setViewport", readonly "viewport": Objects_2 | Objects_3 | Objects_4 } | { readonly "_tag": "setZoom", readonly "zoomFactor": 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 } | { readonly "_tag": "clearCookies" } | { readonly "_tag": "clearCache" } | { readonly "_tag": "setAudioMuted", readonly "muted": boolean } | { readonly "_tag": "idle" } };
92
+ export type MachineSettingsBrowserCookiesFirefoxProfilesOutput = ReadonlyArray<{ readonly id: string, readonly label: string, readonly isDefault: boolean }>;
93
+ export type MachineSettingsBrowserCookiesChromiumProfilesInput = { readonly browser?: "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet" };
94
+ export type MachineSettingsBrowserCookiesChromiumProfilesOutput = ReadonlyArray<{ readonly browser: "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet", readonly browserName: string, readonly profile: string, readonly label: string, readonly isDefault: boolean }>;
95
+ export type MachineSettingsBrowserCookiesImportInput = { readonly profileId: string, readonly source: { readonly kind: "file", readonly text: string } | { readonly kind: "firefox", readonly firefoxProfileId: string } | { readonly kind: "chromium", readonly browser: "chrome" | "chrome-beta" | "chrome-canary" | "chromium" | "edge" | "brave" | "arc" | "dia" | "comet", readonly profile: string }, readonly threadId?: string };
96
+ export type MachineSettingsBrowserCookiesImportOutput = { readonly status: "imported", readonly counts: { readonly imported: number, readonly expired: number, readonly invalid: number, readonly partitioned: number, readonly prefixViolation: number, readonly writeFailed: number }, readonly machines: 1 } | { readonly status: "rejected", readonly reason: "too-large" | "unrecognized-format" | "incognito" | "unreadable" | "source-busy" | "source-missing" | "unsupported" } | { readonly status: "awaiting-approval", readonly requestId: string, readonly threadId: string, readonly note: string } | { readonly status: "rejected", readonly reason: "approval-pending", readonly requestId: string, readonly threadId: string, readonly note: string };
97
+ export type ThreadsBrowserOpenInput = { readonly threadId: string, readonly url?: string, readonly asset?: { readonly _tag: "workspace-file", readonly path: string, readonly cwd?: string } | { readonly _tag: "media-file", readonly path: string, readonly cwd?: string } | { readonly _tag: "attachment", readonly attachmentId: string, readonly fileName?: string }, readonly viewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly profileId?: string, readonly executionHost?: "desktop" | "environment" };
98
+ export type ThreadsBrowserOpenOutput = { readonly threadId: string, readonly tabId: string, readonly navStatus: { readonly _tag: "Idle" } | { readonly _tag: "Loading", readonly url: string, readonly title: string } | { readonly _tag: "Success", readonly url: string, readonly title: string } | { readonly _tag: "LoadFailed", readonly url: string, readonly title: string, readonly code: number, readonly description: string }, readonly canGoBack: boolean, readonly canGoForward: boolean, readonly viewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" } | undefined, readonly profileId?: string | undefined, readonly executionHost?: "desktop" | "environment" | undefined, readonly favicon?: { readonly dataUrl: string, readonly pageUrl: string, readonly capturedAt: number } | undefined, readonly recording?: { readonly startedAt: string, readonly requestedBy: "agent" | "user" } | undefined, readonly audible?: boolean | undefined, readonly audioMuted?: boolean | undefined, readonly updatedAt: string };
99
+ export type ThreadsBrowserStateGetInput = { readonly threadId: string, readonly tabId: string };
100
+ export type ThreadsBrowserStateGetOutput = { readonly threadId: string, readonly tabId: string, readonly pageEpoch: string, readonly controlEpoch: number, readonly viewportEpoch: number, readonly control: "agent" | "human", readonly viewport: { readonly width: number, readonly height: number }, readonly colorScheme?: "system" | "light" | "dark" | undefined, readonly fillsPanel?: boolean | undefined, readonly agentActivity?: { readonly active: boolean, readonly seq: number, readonly pointer?: { readonly x: number, readonly y: number, readonly kind: "click" | "scroll" | "type" | "move" } | undefined } | undefined, readonly recording?: { readonly startedAt: string, readonly requestedBy: "agent" | "user" } | undefined, readonly viewportSetting?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" } | undefined, readonly zoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 | undefined, readonly audible?: boolean | undefined, readonly audioMuted?: boolean | undefined, readonly downloads?: ReadonlyArray<{ readonly id: string, readonly fileName: string, readonly state: "inProgress" | "completed" | "canceled", readonly receivedBytes: number, readonly totalBytes?: number | undefined, readonly fetchable: boolean, readonly stalled?: boolean | undefined, readonly leftover?: boolean | undefined }> | undefined };
101
+ export type ThreadsBrowserStateSubscribeInput = { readonly threadId: string, readonly tabId: string };
102
+ export type ThreadsBrowserStateSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly threadId: string, readonly tabId: string, readonly pageEpoch: string, readonly controlEpoch: number, readonly viewportEpoch: number, readonly control: "agent" | "human", readonly viewport: { readonly width: number, readonly height: number }, readonly colorScheme?: "system" | "light" | "dark" | undefined, readonly fillsPanel?: boolean | undefined, readonly agentActivity?: { readonly active: boolean, readonly seq: number, readonly pointer?: { readonly x: number, readonly y: number, readonly kind: "click" | "scroll" | "type" | "move" } | undefined } | undefined, readonly recording?: { readonly startedAt: string, readonly requestedBy: "agent" | "user" } | undefined, readonly viewportSetting?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" } | undefined, readonly zoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 | undefined, readonly audible?: boolean | undefined, readonly audioMuted?: boolean | undefined, readonly downloads?: ReadonlyArray<{ readonly id: string, readonly fileName: string, readonly state: "inProgress" | "completed" | "canceled", readonly receivedBytes: number, readonly totalBytes?: number | undefined, readonly fetchable: boolean, readonly stalled?: boolean | undefined, readonly leftover?: boolean | undefined }> | undefined } };
103
+ export type ThreadsBrowserInputInput = { readonly threadId: string, readonly tabId: string, readonly pageEpoch: string, readonly controlEpoch: number, readonly viewportEpoch: number, readonly viewerId: string, readonly input: { readonly _tag: "reload", readonly ignoreCache?: boolean } | { readonly _tag: "back" } | { readonly _tag: "forward" } | { readonly _tag: "setColorScheme", readonly colorScheme: "system" | "light" | "dark" } | { readonly _tag: "pointer", readonly x: number, readonly y: number, readonly button: "left" | "middle" | "right" } | { readonly _tag: "pointerMove", readonly x: number, readonly y: number, readonly buttons?: number } | { readonly _tag: "pointerDown", readonly x: number, readonly y: number, readonly button: "left" | "middle" | "right" } | { readonly _tag: "pointerUp", readonly x: number, readonly y: number, readonly button: "left" | "middle" | "right" } | { readonly _tag: "wheel", readonly x: number, readonly y: number, readonly deltaX: number, readonly deltaY: number } | { readonly _tag: "key", readonly key: string, readonly modifiers?: number, readonly editingCommand?: "Cut" | "Copy" | "SelectAll" } | { readonly _tag: "text", readonly text: string } | { readonly _tag: "navigate", readonly url: string } | { readonly _tag: "resize", readonly width: number, readonly height: number } | { readonly _tag: "setViewport", readonly viewport: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" } } | { readonly _tag: "setZoom", readonly zoomFactor: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 } | { readonly _tag: "clearCookies" } | { readonly _tag: "clearCache" } | { readonly _tag: "setAudioMuted", readonly muted: boolean } | { readonly _tag: "idle" } };
503
104
  export type ThreadsBrowserInputOutput = null;
504
- export type ThreadsBrowserCaptureInput = Objects_6;
505
- export type ThreadsBrowserCaptureOutput = { readonly "artifactId": string, readonly "sha256": string, readonly "path": string, readonly "sizeBytes": number, readonly "mimeType": "image/png", readonly "width": number, readonly "height": number, readonly "data": string };
506
- export type ThreadsBrowserAnnotationStartInput = { readonly "threadId": string, readonly "tabId": string, readonly "copy": { readonly "toolSelect": string, readonly "toolSelectHint": string, readonly "toolRegion": string, readonly "toolRegionHint": string, readonly "toolDraw": string, readonly "toolDrawHint": string, readonly "toolErase": string, readonly "toolEraseHint": string, readonly "expandEditor": string, readonly "collapseEditor": string, readonly "dragEditor": string, readonly "commentPlaceholder": string, readonly "attach": string, readonly "attachHint": string, readonly "capturing": string, readonly "font": string, readonly "fontSize": string, readonly "fontWeight": string, readonly "lineHeight": string, readonly "textColor": string, readonly "textColorValue": string, readonly "background": string, readonly "backgroundValue": string, readonly "opacity": string, readonly "radius": string, readonly "borderColor": string, readonly "borderColorValue": string, readonly "borderWidth": string, readonly "width": string, readonly "height": string, readonly "lockAspectRatio": string, readonly "padding": string, readonly "margin": string, readonly "gap": string }, readonly "theme"?: Objects_8 };
507
- export type ThreadsBrowserAnnotationStartOutput = { readonly "annotation": { readonly "id": string, readonly "pageUrl": string, readonly "pageTitle": string | null, readonly "comment": string, readonly "elements": ReadonlyArray<{ readonly "id": string, readonly "element": { readonly "pageUrl": string, readonly "pageTitle": string | null, readonly "tagName": string, readonly "selector": string | null, readonly "htmlPreview": string, readonly "componentName": string | null, readonly "source": Objects_9 | null, readonly "stack": ReadonlyArray<Objects_9>, readonly "styles": string, readonly "pickedAt": string }, readonly "rect": Objects_10 }>, readonly "regions": ReadonlyArray<{ readonly "id": string, readonly "rect": Objects_10 }>, readonly "strokes": ReadonlyArray<{ readonly "id": string, readonly "color": string, readonly "width": number, readonly "points": ReadonlyArray<{ readonly "x": number, readonly "y": number }>, readonly "bounds": Objects_10 }>, readonly "styleChanges": ReadonlyArray<{ readonly "targetId": string, readonly "selector": string | null, readonly "property": string, readonly "previousValue": string, readonly "value": string }>, readonly "screenshot": { readonly "dataUrl": string, readonly "width": number, readonly "height": number, readonly "cropRect": Objects_10 } | null, readonly "createdAt": string }, readonly "submission": "attach" | "send", readonly "screenshotFailed"?: boolean } | null;
508
- export type ThreadsBrowserAnnotationCancelInput = Objects_6;
105
+ export type ThreadsBrowserCaptureInput = { readonly threadId: string, readonly tabId: string };
106
+ export type ThreadsBrowserCaptureOutput = { readonly artifactId: string, readonly sha256: string, readonly path: string, readonly sizeBytes: number, readonly mimeType: "image/png", readonly width: number, readonly height: number, readonly data: string };
107
+ export type ThreadsBrowserAnnotationStartInput = { readonly threadId: string, readonly tabId: string, readonly copy: { readonly toolSelect: string, readonly toolSelectHint: string, readonly toolRegion: string, readonly toolRegionHint: string, readonly toolDraw: string, readonly toolDrawHint: string, readonly toolErase: string, readonly toolEraseHint: string, readonly expandEditor: string, readonly collapseEditor: string, readonly dragEditor: string, readonly commentPlaceholder: string, readonly attach: string, readonly attachHint: string, readonly capturing: string, readonly font: string, readonly fontSize: string, readonly fontWeight: string, readonly lineHeight: string, readonly textColor: string, readonly textColorValue: string, readonly background: string, readonly backgroundValue: string, readonly opacity: string, readonly radius: string, readonly borderColor: string, readonly borderColorValue: string, readonly borderWidth: string, readonly width: string, readonly height: string, readonly lockAspectRatio: string, readonly padding: string, readonly margin: string, readonly gap: string }, readonly theme?: { readonly colorScheme: "light" | "dark", readonly radius: string, readonly background: string, readonly foreground: string, readonly popover: string, readonly popoverForeground: string, readonly primary: string, readonly primaryForeground: string, readonly muted: string, readonly mutedForeground: string, readonly accent: string, readonly accentForeground: string, readonly border: string, readonly input: string, readonly ring: string, readonly fontSans: string, readonly fontMono: string } };
108
+ export type ThreadsBrowserAnnotationStartOutput = { readonly annotation: { readonly id: string, readonly pageUrl: string, readonly pageTitle: string | null, readonly comment: string, readonly elements: ReadonlyArray<{ readonly id: string, readonly element: { readonly pageUrl: string, readonly pageTitle: string | null, readonly tagName: string, readonly selector: string | null, readonly htmlPreview: string, readonly componentName: string | null, readonly source: { readonly functionName: string | null, readonly fileName: string | null, readonly lineNumber: number | null, readonly columnNumber: number | null } | null, readonly stack: ReadonlyArray<{ readonly functionName: string | null, readonly fileName: string | null, readonly lineNumber: number | null, readonly columnNumber: number | null }>, readonly styles: string, readonly pickedAt: string }, readonly rect: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } }>, readonly regions: ReadonlyArray<{ readonly id: string, readonly rect: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } }>, readonly strokes: ReadonlyArray<{ readonly id: string, readonly color: string, readonly width: number, readonly points: ReadonlyArray<{ readonly x: number, readonly y: number }>, readonly bounds: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } }>, readonly styleChanges: ReadonlyArray<{ readonly targetId: string, readonly selector: string | null, readonly property: string, readonly previousValue: string, readonly value: string }>, readonly screenshot: { readonly dataUrl: string, readonly width: number, readonly height: number, readonly cropRect: { readonly x: number, readonly y: number, readonly width: number, readonly height: number } } | null, readonly createdAt: string }, readonly submission: "attach" | "send", readonly screenshotFailed?: boolean } | null;
109
+ export type ThreadsBrowserAnnotationCancelInput = { readonly threadId: string, readonly tabId: string };
509
110
  export type ThreadsBrowserAnnotationCancelOutput = null;
510
- export type ThreadsBrowserAnnotationThemeInput = { readonly "threadId": string, readonly "tabId": string, readonly "theme": Objects_8 };
111
+ export type ThreadsBrowserAnnotationThemeInput = { readonly threadId: string, readonly tabId: string, readonly theme: { readonly colorScheme: "light" | "dark", readonly radius: string, readonly background: string, readonly foreground: string, readonly popover: string, readonly popoverForeground: string, readonly primary: string, readonly primaryForeground: string, readonly muted: string, readonly mutedForeground: string, readonly accent: string, readonly accentForeground: string, readonly border: string, readonly input: string, readonly ring: string, readonly fontSans: string, readonly fontMono: string } };
511
112
  export type ThreadsBrowserAnnotationThemeOutput = null;
512
- export type ThreadsBrowserRecordingStartInput = { readonly "threadId": string, readonly "tabId": string, readonly "frameRate"?: 30 | 60, readonly "showKeyPresses"?: boolean, readonly "showMousePresses"?: boolean };
513
- export type ThreadsBrowserRecordingStartOutput = Objects_7;
514
- export type ThreadsBrowserRecordingStopInput = Objects_6;
515
- export type ThreadsBrowserRecordingStopOutput = { readonly "artifactId": string, readonly "sha256": string, readonly "path": string, readonly "sizeBytes": number, readonly "mimeType": string };
516
- export type ThreadsBrowserContextInput = { readonly "threadId": string, readonly "tabId": string, readonly "pageEpoch": string, readonly "controlEpoch": number, readonly "viewportEpoch": number, readonly "viewerId": string, readonly "x"?: number, readonly "y"?: number, readonly "captureImage"?: boolean };
517
- export type ThreadsBrowserContextOutput = { readonly "selectionText": string, readonly "linkUrl"?: string | undefined, readonly "imageUrl"?: string | undefined, readonly "editable": boolean, readonly "canCut": boolean, readonly "canCopy": boolean, readonly "canPaste": boolean, readonly "canSelectAll": boolean, readonly "imagePngBase64"?: string | undefined };
518
- export type ThreadsBrowserDownloadUrlInput = { readonly "threadId": string, readonly "tabId": string, readonly "downloadId": string };
519
- export type ThreadsBrowserDownloadUrlOutput = { readonly "relativeUrl": string, readonly "expiresAt": number, readonly "fileName": string };
520
- export type ThreadsBrowserDownloadCancelInput = { readonly "threadId": string, readonly "tabId": string, readonly "downloadId": string };
521
- export type ThreadsBrowserDownloadCancelOutput = { readonly "outcome": "canceled" | "cleared" };
522
- export type ThreadsBrowserSetAudioMutedInput = { readonly "threadId": string, readonly "tabId": string, readonly "muted": boolean };
113
+ export type ThreadsBrowserRecordingStartInput = { readonly threadId: string, readonly tabId: string, readonly frameRate?: 30 | 60, readonly showKeyPresses?: boolean, readonly showMousePresses?: boolean };
114
+ export type ThreadsBrowserRecordingStartOutput = { readonly threadId: string, readonly tabId: string, readonly pageEpoch: string, readonly controlEpoch: number, readonly viewportEpoch: number, readonly control: "agent" | "human", readonly viewport: { readonly width: number, readonly height: number }, readonly colorScheme?: "system" | "light" | "dark" | undefined, readonly fillsPanel?: boolean | undefined, readonly agentActivity?: { readonly active: boolean, readonly seq: number, readonly pointer?: { readonly x: number, readonly y: number, readonly kind: "click" | "scroll" | "type" | "move" } | undefined } | undefined, readonly recording?: { readonly startedAt: string, readonly requestedBy: "agent" | "user" } | undefined, readonly viewportSetting?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" } | undefined, readonly zoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 | undefined, readonly audible?: boolean | undefined, readonly audioMuted?: boolean | undefined, readonly downloads?: ReadonlyArray<{ readonly id: string, readonly fileName: string, readonly state: "inProgress" | "completed" | "canceled", readonly receivedBytes: number, readonly totalBytes?: number | undefined, readonly fetchable: boolean, readonly stalled?: boolean | undefined, readonly leftover?: boolean | undefined }> | undefined };
115
+ export type ThreadsBrowserRecordingStopInput = { readonly threadId: string, readonly tabId: string };
116
+ export type ThreadsBrowserRecordingStopOutput = { readonly artifactId: string, readonly sha256: string, readonly path: string, readonly sizeBytes: number, readonly mimeType: string };
117
+ export type ThreadsBrowserContextInput = { readonly threadId: string, readonly tabId: string, readonly pageEpoch: string, readonly controlEpoch: number, readonly viewportEpoch: number, readonly viewerId: string, readonly x?: number, readonly y?: number, readonly captureImage?: boolean };
118
+ export type ThreadsBrowserContextOutput = { readonly selectionText: string, readonly linkUrl?: string | undefined, readonly imageUrl?: string | undefined, readonly editable: boolean, readonly canCut: boolean, readonly canCopy: boolean, readonly canPaste: boolean, readonly canSelectAll: boolean, readonly imagePngBase64?: string | undefined };
119
+ export type ThreadsBrowserDownloadUrlInput = { readonly threadId: string, readonly tabId: string, readonly downloadId: string };
120
+ export type ThreadsBrowserDownloadUrlOutput = { readonly relativeUrl: string, readonly expiresAt: number, readonly fileName: string };
121
+ export type ThreadsBrowserDownloadCancelInput = { readonly threadId: string, readonly tabId: string, readonly downloadId: string };
122
+ export type ThreadsBrowserDownloadCancelOutput = { readonly outcome: "canceled" | "cleared" };
123
+ export type ThreadsBrowserSetAudioMutedInput = { readonly threadId: string, readonly tabId: string, readonly muted: boolean };
523
124
  export type ThreadsBrowserSetAudioMutedOutput = null;
524
- export type ProjectsLedgerImportGetInput = Objects_11;
525
- export type ProjectsLedgerImportGetOutput = { readonly "candidate": { readonly "homeEnvironmentId": string, readonly "counts": { readonly [x: string]: number } } | null, readonly "outgoing": Objects_12 | null, readonly "received": ReadonlyArray<{ readonly "importId": string, readonly "sourceEnvironmentId": string, readonly "sourceName"?: string, readonly "bundleDigest": string, readonly "verifiedAt": string, readonly "report": Objects_13 }> };
526
- export type ProjectsLedgerImportStartInput = Objects_11;
527
- export type ProjectsLedgerImportStartOutput = Objects_15;
528
- export type ProjectsLedgerImportResumeInput = Objects_11;
529
- export type ProjectsLedgerImportResumeOutput = Objects_15;
530
- export type ProjectsMachinesAccountRestoreInput = { readonly "projectId": string, readonly "environmentId": string };
531
- export type ProjectsMachinesAccountRestoreOutput = { readonly "restored": boolean };
532
- export type ProjectsMachinesPolicyGetInput = { readonly "projectId": string };
533
- export type ProjectsMachinesPolicyGetOutput = Objects_16;
534
- export type ProjectsMachinesPolicySetInput = { readonly "projectId": string, readonly "policy": { readonly "sameAccount": "all" | "listed", readonly "excludedEnvironmentIds": ReadonlyArray<string>, readonly "allowedEnvironmentIds": ReadonlyArray<string> } };
535
- export type ProjectsMachinesPolicySetOutput = Objects_16;
536
- export type ProjectsMachinesExclusionSetInput = { readonly "projectId": string, readonly "environmentId": string, readonly "excluded": boolean };
537
- export type ProjectsMachinesExclusionSetOutput = Objects_16;
538
- export type ProjectsMachinesRegistrationResolveInput = { readonly "projectId": string, readonly "environmentId": string, readonly "decision": "replace" | "keep" };
539
- export type ProjectsMachinesRegistrationResolveOutput = { readonly "resolved": boolean };
540
- export type ProjectsMachinesAccountRemoveInput = { readonly "projectId": string, readonly "environmentId": string };
541
- export type ProjectsMachinesAccountRemoveOutput = { readonly "removed": boolean };
542
- export type ProjectsHomeOutboxListInput = { readonly "projectId": string };
543
- export type ProjectsHomeOutboxListOutput = { readonly "items": ReadonlyArray<{ readonly "entryId": string, readonly "projectId": string, readonly "homeEnvironmentId": string, readonly "capabilityId": string, readonly "createdAt": string, readonly "attempts": number, readonly "status": "pending" | "unknown" | "rejected", readonly "reason"?: string, readonly "summary"?: string }> };
544
- export type ProjectsHomeOutboxRetryInput = Objects_17;
545
- export type ProjectsHomeOutboxRetryOutput = Objects_18;
546
- export type ProjectsHomeOutboxDiscardInput = Objects_17;
547
- export type ProjectsHomeOutboxDiscardOutput = Objects_18;
548
- export type ProjectsMachinesListInput = { readonly "projectId": string, readonly "includeModels"?: boolean };
549
- export type ProjectsMachinesListOutput = { readonly "accountDiscovery"?: AccountMachineDiscoveryStatus, readonly "items": ReadonlyArray<{ readonly "platform"?: { readonly "os": "darwin" | "linux" | "windows" | "unknown", readonly "arch": "arm64" | "x64" | "other", readonly "machine"?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, readonly "serverVersion"?: string, readonly "wireProtocolVersion"?: number, readonly "threadDirectoryIds"?: boolean, readonly "actions"?: ReadonlyArray<Objects_19>, readonly "autoApproved"?: "all" | ReadonlyArray<string>, readonly "projectTasks"?: ReadonlyArray<{ readonly "name": string, readonly "description"?: string, readonly "variants"?: Arrays_1 }>, readonly "seatHealth"?: SeatHealth, readonly "projectFolderAttached"?: boolean, readonly "environmentId": string, readonly "name": string, readonly "online": boolean, readonly "connection"?: "stream" | "polling" | "none", readonly "memberUpdateRequired"?: true, readonly "joinedAt": string, readonly "lastSeenAt"?: string, readonly "providers": ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName": string, readonly "models": ReadonlyArray<{ readonly "slug": string, readonly "name": string }>, readonly "defaultModel"?: string, readonly "readiness"?: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly "installed"?: boolean, readonly "auth"?: "authenticated" | "unauthenticated" | "unknown", readonly "modelCatalog"?: Objects_20 }>, readonly "providersReportedAt"?: string, readonly "principalId": string, readonly "admittedBy"?: "join-code" | "client-broker" | "account", readonly "keyChangePending"?: boolean, readonly "replacementName"?: string, readonly "previousLastSeenAt"?: string, readonly "restoredFromRemovalId"?: string }>, readonly "removedEnvironmentIds"?: ReadonlyArray<string>, readonly "removedMachines"?: ReadonlyArray<ProjectMachineRemoval>, readonly "excludedEnvironmentIds"?: ReadonlyArray<string>, readonly "accountMachines"?: ReadonlyArray<{ readonly "environmentId": string, readonly "name": string, readonly "online": boolean, readonly "connection"?: "stream" | "polling" | "none", readonly "lastSeenAt"?: string, readonly "excluded": boolean, readonly "seatHealth"?: SeatHealth, readonly "removed"?: boolean, readonly "keyChangePending"?: boolean, readonly "pendingAdmission"?: boolean, readonly "replacementName"?: string }> };
550
- export type ProjectsMachinesByMachineListInput = { readonly "environmentId"?: string };
551
- export type ProjectsMachinesByMachineListOutput = { readonly "machines": ReadonlyArray<ProjectMachineByMachine> };
552
- export type ProjectsMachinesJoinCodeCreateInput = { readonly "projectId": string, readonly "automaticEnvironmentId"?: string, readonly "addBack"?: ProjectMachineRemoval_1 };
553
- export type ProjectsMachinesJoinCodeCreateOutput = { readonly "code": string, readonly "expiresAt": string };
554
- export type ProjectsMachinesRemoveInput = { readonly "projectId": string, readonly "environmentId": string };
555
- export type ProjectsMachinesRemoveOutput = { readonly "removed": boolean, readonly "removal"?: ProjectMachineRemoval_2 };
556
- export type ProjectsMachinesJoinInput = { readonly "homeUrl": string, readonly "code": string, readonly "projectId"?: string, readonly "allowInsecureHttp"?: boolean, readonly "homeEnvironmentId"?: string };
557
- export type ProjectsMachinesJoinOutput = { readonly "seatId": string, readonly "homeEnvironmentId": string, readonly "projectId": string };
125
+ export type ProjectsLedgerImportGetInput = { readonly projectId: string };
126
+ export type ProjectsLedgerImportGetOutput = { readonly candidate: { readonly homeEnvironmentId: string, readonly counts: { readonly [x: string]: number } } | null, readonly outgoing: { readonly projectId: string, readonly homeEnvironmentId: string, readonly importId: string, readonly bundleDigest: string, readonly state: "running" | "stopped" | "verified" | "failed", readonly nextChunk: number, readonly chunkCount: number, readonly stopReason?: { readonly _tag: "removed-target", readonly target: { readonly kind: "state" | "label" | "line", readonly id: string, readonly name?: string } } | { readonly _tag: "home-unreachable", readonly code?: "home-update-required" | "not-permitted" | "unreachable", readonly detail?: string } | { readonly _tag: "refused", readonly code?: "different-account", readonly detail: string } | { readonly _tag: "interrupted" }, readonly report?: { readonly ok: boolean, readonly categories: { readonly [x: string]: { readonly source: number, readonly applied: number, readonly mapped: number, readonly skipped: number, readonly missing: number } }, readonly notExported: { readonly [x: string]: number }, readonly pluginFactsNotExported: { readonly [x: string]: number }, readonly differences: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly differencesTotal: number, readonly noted: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly notedTotal: number }, readonly startedAt: string, readonly updatedAt: string } | null, readonly received: ReadonlyArray<{ readonly importId: string, readonly sourceEnvironmentId: string, readonly sourceName?: string, readonly bundleDigest: string, readonly verifiedAt: string, readonly report: { readonly ok: boolean, readonly categories: { readonly [x: string]: { readonly source: number, readonly applied: number, readonly mapped: number, readonly skipped: number, readonly missing: number } }, readonly notExported: { readonly [x: string]: number }, readonly pluginFactsNotExported: { readonly [x: string]: number }, readonly differences: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly differencesTotal: number, readonly noted: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly notedTotal: number } }> };
127
+ export type ProjectsLedgerImportStartInput = { readonly projectId: string };
128
+ export type ProjectsLedgerImportStartOutput = { readonly status: { readonly projectId: string, readonly homeEnvironmentId: string, readonly importId: string, readonly bundleDigest: string, readonly state: "running" | "stopped" | "verified" | "failed", readonly nextChunk: number, readonly chunkCount: number, readonly stopReason?: { readonly _tag: "removed-target", readonly target: { readonly kind: "state" | "label" | "line", readonly id: string, readonly name?: string } } | { readonly _tag: "home-unreachable", readonly code?: "home-update-required" | "not-permitted" | "unreachable", readonly detail?: string } | { readonly _tag: "refused", readonly code?: "different-account", readonly detail: string } | { readonly _tag: "interrupted" }, readonly report?: { readonly ok: boolean, readonly categories: { readonly [x: string]: { readonly source: number, readonly applied: number, readonly mapped: number, readonly skipped: number, readonly missing: number } }, readonly notExported: { readonly [x: string]: number }, readonly pluginFactsNotExported: { readonly [x: string]: number }, readonly differences: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly differencesTotal: number, readonly noted: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly notedTotal: number }, readonly startedAt: string, readonly updatedAt: string } };
129
+ export type ProjectsLedgerImportResumeInput = { readonly projectId: string };
130
+ export type ProjectsLedgerImportResumeOutput = { readonly status: { readonly projectId: string, readonly homeEnvironmentId: string, readonly importId: string, readonly bundleDigest: string, readonly state: "running" | "stopped" | "verified" | "failed", readonly nextChunk: number, readonly chunkCount: number, readonly stopReason?: { readonly _tag: "removed-target", readonly target: { readonly kind: "state" | "label" | "line", readonly id: string, readonly name?: string } } | { readonly _tag: "home-unreachable", readonly code?: "home-update-required" | "not-permitted" | "unreachable", readonly detail?: string } | { readonly _tag: "refused", readonly code?: "different-account", readonly detail: string } | { readonly _tag: "interrupted" }, readonly report?: { readonly ok: boolean, readonly categories: { readonly [x: string]: { readonly source: number, readonly applied: number, readonly mapped: number, readonly skipped: number, readonly missing: number } }, readonly notExported: { readonly [x: string]: number }, readonly pluginFactsNotExported: { readonly [x: string]: number }, readonly differences: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly differencesTotal: number, readonly noted: ReadonlyArray<{ readonly kind: string, readonly id: string, readonly detail: string, readonly field?: "state" | "state-group" | "labels" | "revision" | "priority" | "line" | "archived" | "assignees", readonly subject?: { readonly kind: "work-item" | "comment" | "page" | "member" | "experience" | "post", readonly title?: string, readonly sequence?: number } }>, readonly notedTotal: number }, readonly startedAt: string, readonly updatedAt: string } };
131
+ export type ProjectsMachinesAccountRestoreInput = { readonly projectId: string, readonly environmentId: string };
132
+ export type ProjectsMachinesAccountRestoreOutput = { readonly restored: boolean };
133
+ export type ProjectsMachinesPolicyGetInput = { readonly projectId: string };
134
+ export type ProjectsMachinesPolicyGetOutput = { readonly sameAccount: "all" | "listed", readonly excludedEnvironmentIds: ReadonlyArray<string>, readonly allowedEnvironmentIds: ReadonlyArray<string> };
135
+ export type ProjectsMachinesPolicySetInput = { readonly projectId: string, readonly policy: { readonly sameAccount: "all" | "listed", readonly excludedEnvironmentIds: ReadonlyArray<string>, readonly allowedEnvironmentIds: ReadonlyArray<string> } };
136
+ export type ProjectsMachinesPolicySetOutput = { readonly sameAccount: "all" | "listed", readonly excludedEnvironmentIds: ReadonlyArray<string>, readonly allowedEnvironmentIds: ReadonlyArray<string> };
137
+ export type ProjectsMachinesExclusionSetInput = { readonly projectId: string, readonly environmentId: string, readonly excluded: boolean };
138
+ export type ProjectsMachinesExclusionSetOutput = { readonly sameAccount: "all" | "listed", readonly excludedEnvironmentIds: ReadonlyArray<string>, readonly allowedEnvironmentIds: ReadonlyArray<string> };
139
+ export type ProjectsMachinesRegistrationResolveInput = { readonly projectId: string, readonly environmentId: string, readonly decision: "replace" | "keep" };
140
+ export type ProjectsMachinesRegistrationResolveOutput = { readonly resolved: boolean };
141
+ export type ProjectsMachinesAccountRemoveInput = { readonly projectId: string, readonly environmentId: string };
142
+ export type ProjectsMachinesAccountRemoveOutput = { readonly removed: boolean };
143
+ export type ProjectsHomeOutboxListInput = { readonly projectId: string };
144
+ export type ProjectsHomeOutboxListOutput = { readonly items: ReadonlyArray<{ readonly entryId: string, readonly projectId: string, readonly homeEnvironmentId: string, readonly capabilityId: string, readonly createdAt: string, readonly attempts: number, readonly status: "pending" | "unknown" | "rejected", readonly reason?: string, readonly summary?: string }> };
145
+ export type ProjectsHomeOutboxRetryInput = { readonly projectId: string, readonly entryId: string };
146
+ export type ProjectsHomeOutboxRetryOutput = { readonly result: "done" | "not-found" | "busy" };
147
+ export type ProjectsHomeOutboxDiscardInput = { readonly projectId: string, readonly entryId: string };
148
+ export type ProjectsHomeOutboxDiscardOutput = { readonly result: "done" | "not-found" | "busy" };
149
+ export type ProjectsMachinesListInput = { readonly projectId: string, readonly includeModels?: boolean };
150
+ export type ProjectsMachinesListOutput = { readonly accountDiscovery?: AccountMachineDiscoveryStatus, readonly items: ReadonlyArray<{ readonly platform?: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, readonly serverVersion?: string, readonly wireProtocolVersion?: number, readonly threadDirectoryIds?: boolean, readonly actions?: ReadonlyArray<{ readonly actionId: string, readonly kind: "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly driver?: string, readonly displayName?: string, readonly description?: string, readonly variants?: ReadonlyArray<string>, readonly reversible: boolean }>, readonly autoApproved?: "all" | ReadonlyArray<string>, readonly projectTasks?: ReadonlyArray<{ readonly name: string, readonly description?: string, readonly variants?: ReadonlyArray<string> }>, readonly seatHealth?: SeatHealth, readonly projectFolderAttached?: boolean, readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly memberUpdateRequired?: true, readonly joinedAt: string, readonly lastSeenAt?: string, readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string }>, readonly defaultModel?: string, readonly readiness?: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly failedAt?: string } }>, readonly providersReportedAt?: string, readonly principalId: string, readonly admittedBy?: "join-code" | "client-broker" | "account", readonly keyChangePending?: boolean, readonly replacementName?: string, readonly previousLastSeenAt?: string, readonly restoredFromRemovalId?: string }>, readonly removedEnvironmentIds?: ReadonlyArray<string>, readonly removedMachines?: ReadonlyArray<ProjectMachineRemoval>, readonly excludedEnvironmentIds?: ReadonlyArray<string>, readonly accountMachines?: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly lastSeenAt?: string, readonly excluded: boolean, readonly seatHealth?: SeatHealth, readonly removed?: boolean, readonly keyChangePending?: boolean, readonly pendingAdmission?: boolean, readonly replacementName?: string }> };
151
+ export type ProjectsMachinesByMachineListInput = { readonly environmentId?: string };
152
+ export type ProjectsMachinesByMachineListOutput = { readonly machines: ReadonlyArray<ProjectMachineByMachine> };
153
+ export type ProjectsMachinesJoinCodeCreateInput = { readonly projectId: string, readonly automaticEnvironmentId?: string, readonly addBack?: ProjectMachineRemoval_1 };
154
+ export type ProjectsMachinesJoinCodeCreateOutput = { readonly code: string, readonly expiresAt: string };
155
+ export type ProjectsMachinesRemoveInput = { readonly projectId: string, readonly environmentId: string };
156
+ export type ProjectsMachinesRemoveOutput = { readonly removed: boolean, readonly removal?: ProjectMachineRemoval };
157
+ export type ProjectsMachinesJoinInput = { readonly homeUrl: string, readonly code: string, readonly projectId?: string, readonly allowInsecureHttp?: boolean, readonly homeEnvironmentId?: string };
158
+ export type ProjectsMachinesJoinOutput = { readonly seatId: string, readonly homeEnvironmentId: string, readonly projectId: string };
558
159
  export type ProjectsMachinesJoinedHealthInput = { };
559
- export type ProjectsMachinesJoinedHealthOutput = { readonly "items": ReadonlyArray<ProjectMachineJoinedHealth>, readonly "accountConnections"?: ReadonlyArray<{ readonly "homeEnvironmentId": string, readonly "homeName": string, readonly "connected": boolean, readonly "reason"?: "invalid-proof" | "different-account" | "machine-removed" | "key-confirmation-required" | "key-kept" | "home-update-required" | "local-key-confirmation-required" | "local-key-kept" | "no-reachable-address" | "manual-confirmation-required" | "local-manual-confirmation-required", readonly "lastConnectedAt"?: string, readonly "nextAttemptAt"?: string, readonly "consecutiveFailures"?: number }> };
560
- export type ProjectsMachinesLeaveInput = { readonly "seatId": string };
561
- export type ProjectsMachinesLeaveOutput = { readonly "left": boolean };
562
- export type MachineSettingsMachineTasksApproveInput = { readonly "homeEnvironmentId": string, readonly "environmentId": string, readonly "projectId": string, readonly "workItemId": string, readonly "actionId": string, readonly "input"?: { readonly "projectTask"?: Objects_21, readonly "instanceId"?: string, readonly "variant"?: string, readonly "targetVersion"?: string, readonly "command"?: string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "timeoutSeconds"?: number, readonly "minutes"?: number }, readonly "rememberProject"?: boolean };
563
- export type MachineSettingsMachineTasksApproveOutput = { readonly "approval": string };
564
- export type ProjectsMachinesActionsListInput = { readonly "projectId": string, readonly "environmentId": string };
565
- export type ProjectsMachinesActionsListOutput = { readonly "items": ReadonlyArray<Objects_19>, readonly "unavailable"?: ReadonlyArray<{ readonly "actionPattern": "project.*", readonly "reason": "no-project-folder" | "machine-needs-update" }> };
566
- export type ProjectsMachinesThreadsListInput = { readonly "collection"?: "page" | "all", readonly "include"?: Arrays_4, readonly "threadIds"?: ThreadDirectoryIds, readonly "parentThreadId"?: string, readonly "forkedFrom"?: Objects_22, readonly "archived"?: "exclude" | "include" | "only", readonly "sessionStatus"?: Arrays_5, readonly "pendingApproval"?: boolean, readonly "pendingUserInput"?: boolean, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "projectId": string, readonly "machineId": string };
567
- export type ProjectsMachinesThreadsListOutput = { readonly "items": ReadonlyArray<Objects_23>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "historyEpoch"?: string, readonly "machine": Objects_41 };
568
- export type ProjectsMachinesThreadsGetInput = { readonly "projectId": string, readonly "machineId": string, readonly "threadId": string };
569
- export type ProjectsMachinesThreadsGetOutput = { readonly "thread": Objects_23, readonly "execution": Objects_42, readonly "machine": Objects_41 };
570
- export type ProjectsMachinesThreadsMessagesListInput = { readonly "threadId": string, readonly "messageId"?: string, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "includeTotal"?: boolean, readonly "attachmentOffset"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number, readonly "projectId": string, readonly "machineId": string };
571
- export type ProjectsMachinesThreadsMessagesListOutput = Objects_43;
572
- export type ThreadsListInput = { readonly "collection"?: "page" | "all", readonly "include"?: Arrays_4, readonly "projectId"?: string, readonly "threadIds"?: ThreadDirectoryIds, readonly "parentThreadId"?: string, readonly "forkedFrom"?: Objects_22, readonly "archived"?: "exclude" | "include" | "only", readonly "sessionStatus"?: Arrays_5, readonly "pendingApproval"?: boolean, readonly "pendingUserInput"?: boolean, readonly "cursor"?: string | null, readonly "limit"?: number };
573
- export type ThreadsListOutput = Objects_60;
574
- export type ThreadsListSubscribeInput = { readonly "include"?: Arrays_4, readonly "projectId"?: string, readonly "threadIds"?: ThreadDirectoryIds, readonly "parentThreadId"?: string, readonly "forkedFrom"?: Objects_22, readonly "archived"?: "exclude" | "include" | "only", readonly "after"?: Objects_62 };
575
- export type ThreadsListSubscribeOutput = { readonly "_tag": "snapshot", readonly "cursor": Objects_62, readonly "value": Objects_60 } | { readonly "change": { readonly "_tag": "upserted", readonly "thread": Objects_61 } | { readonly "_tag": "removed", readonly "threadId": string }, readonly "_tag": "delta", readonly "cursor": Objects_62 } | { readonly "threads": ReadonlyArray<{ readonly "threadId": string, readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "nativeSessionImported"?: true, readonly "runtime"?: { readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined, readonly "backgroundMonitorCount"?: number | undefined, readonly "planProgress"?: Union_17 }, readonly "members"?: ThreadDirectoryRefreshMembers }>, readonly "_tag": "refresh" } | Objects_63;
160
+ export type ProjectsMachinesJoinedHealthOutput = { readonly items: ReadonlyArray<ProjectMachineJoinedHealth>, readonly accountConnections?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly homeName: string, readonly connected: boolean, readonly reason?: "invalid-proof" | "different-account" | "machine-removed" | "key-confirmation-required" | "key-kept" | "home-update-required" | "local-key-confirmation-required" | "local-key-kept" | "no-reachable-address" | "manual-confirmation-required" | "local-manual-confirmation-required", readonly lastConnectedAt?: string, readonly nextAttemptAt?: string, readonly consecutiveFailures?: number }> };
161
+ export type ProjectsMachinesLeaveInput = { readonly seatId: string };
162
+ export type ProjectsMachinesLeaveOutput = { readonly left: boolean };
163
+ export type MachineSettingsMachineTasksApproveInput = { readonly homeEnvironmentId: string, readonly environmentId: string, readonly projectId: string, readonly workItemId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly rememberProject?: boolean };
164
+ export type MachineSettingsMachineTasksApproveOutput = { readonly approval: string };
165
+ export type ProjectsMachinesActionsListInput = { readonly projectId: string, readonly environmentId: string };
166
+ export type ProjectsMachinesActionsListOutput = { readonly items: ReadonlyArray<{ readonly actionId: string, readonly kind: "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly driver?: string, readonly displayName?: string, readonly description?: string, readonly variants?: ReadonlyArray<string>, readonly reversible: boolean }>, readonly unavailable?: ReadonlyArray<{ readonly actionPattern: "project.*", readonly reason: "no-project-folder" | "machine-needs-update" }> };
167
+ export type ProjectsMachinesThreadsListInput = { readonly collection?: "page" | "all", readonly include?: ReadonlyArray<"summary" | "runtime">, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly sessionStatus?: ReadonlyArray<"idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error">, readonly pendingApproval?: boolean, readonly pendingUserInput?: boolean, readonly cursor?: string | null, readonly limit?: number, readonly projectId: string, readonly machineId: string };
168
+ export type ProjectsMachinesThreadsListOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
169
+ export type ProjectsMachinesThreadsGetInput = { readonly projectId: string, readonly machineId: string, readonly threadId: string };
170
+ export type ProjectsMachinesThreadsGetOutput = { readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }, readonly execution: { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" }, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
171
+ export type ProjectsMachinesThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number, readonly projectId: string, readonly machineId: string };
172
+ export type ProjectsMachinesThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
173
+ export type ThreadsListInput = { readonly collection?: "page" | "all", readonly include?: ReadonlyArray<"summary" | "runtime">, readonly projectId?: string, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly sessionStatus?: ReadonlyArray<"idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error">, readonly pendingApproval?: boolean, readonly pendingUserInput?: boolean, readonly cursor?: string | null, readonly limit?: number };
174
+ export type ThreadsListOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string };
175
+ export type ThreadsListSubscribeInput = { readonly include?: ReadonlyArray<"summary" | "runtime">, readonly projectId?: string, readonly threadIds?: ThreadDirectoryIds, readonly parentThreadId?: string, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId?: string }, readonly archived?: "exclude" | "include" | "only", readonly after?: { readonly epoch: string, readonly sequence: number } };
176
+ export type ThreadsListSubscribeOutput = { readonly _tag: "snapshot", readonly cursor: { readonly epoch: string, readonly sequence: number }, readonly value: { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string } } | { readonly change: { readonly _tag: "upserted", readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } } } | { readonly _tag: "removed", readonly threadId: string }, readonly _tag: "delta", readonly cursor: { readonly epoch: string, readonly sequence: number } } | { readonly threads: ReadonlyArray<{ readonly threadId: string, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly nativeSessionImported?: true, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly members?: ThreadDirectoryRefreshMembers }>, readonly _tag: "refresh" } | { readonly _tag: "synchronized" };
576
177
  export type ThreadsArchivedListInput = { };
577
- export type ThreadsArchivedListOutput = { readonly "snapshotSequence": number, readonly "projects": ReadonlyArray<Objects_64>, readonly "threads": ReadonlyArray<Objects_66>, readonly "updatedAt": string };
578
- export type ThreadsHistoryInput = { readonly "threadId": string, readonly "turnLimit"?: number, readonly "beforeCursor"?: string, readonly "afterCursor"?: string, readonly "aroundTurnId"?: string, readonly "boundedHistory"?: boolean };
579
- export type ThreadsHistoryOutput = { readonly "snapshotSequence": number, readonly "historyEpoch"?: string, readonly "thread": { readonly "id": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_25, readonly "actualModel"?: { readonly "selection": Objects_25, readonly "requested": Objects_25, readonly "source": "reported" | "echo", readonly "turnId"?: string | undefined, readonly "recordedAt": string } | undefined, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "nativeModeId"?: string | null | undefined, readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: ReadonlyArray<string> | undefined, readonly "linkedPullRequest"?: Union_6, readonly "origin"?: Union_7, readonly "forkedFrom"?: Union_23, readonly "presetId"?: string | null | undefined, readonly "memberId"?: string | undefined, readonly "members"?: ThreadMembers, readonly "createdBy"?: Union_8, readonly "creatorPrincipal"?: ThreadCreatorPrincipal, readonly "latestTurn": Union_9, readonly "stopRequestedAt"?: string | null, readonly "continuationCheck"?: ThreadContinuationCheckOrNull, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "settledOverride": "settled" | "active" | null, readonly "settledAt": string | null, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "pendingNotifications"?: ReadonlyArray<{ readonly "dedupeKey": string, readonly "notification": { readonly "kind": "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly "childThreadId": string, readonly "childTitle": string, readonly "remotePost"?: Union_24, readonly "summary": string, readonly "requestId"?: string | undefined, readonly "questionRequest"?: ChildQuestionRequest, readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly "pluginId"?: string | undefined, readonly "recordId"?: string | undefined, readonly "postId"?: string } | { readonly "kind": "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly "sourceThreadId"?: string | undefined, readonly "sourceTitle"?: string | undefined, readonly "childThreadId"?: string | undefined, readonly "childTitle"?: string | undefined, readonly "remotePost"?: Union_24, readonly "summary": string, readonly "requestId"?: string | undefined, readonly "questionRequest"?: ChildQuestionRequest, readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly "pluginId"?: string | undefined, readonly "recordId"?: string | undefined, readonly "postId"?: string }, readonly "queuedAt": string }> | undefined, readonly "executionSelection"?: Objects_28 | undefined, readonly "turnIntents"?: ReadonlyArray<{ readonly "intentId": string, readonly "threadId": string, readonly "sequence": number, readonly "commandId": string, readonly "messageId": string, readonly "paused"?: boolean, readonly "revision"?: number, readonly "action"?: Union_25, readonly "executionSelection"?: { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": Arrays_8, readonly "expectedRevisions": Objects_29 }, readonly "legacyModelSelection": { readonly "instanceId": string, readonly "model": string, readonly "options"?: Arrays_6 | Arrays_7 }, readonly "runSettings"?: { readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "nativeModeId"?: string }, readonly "origin"?: Objects_45 | Objects_46 | Objects_47 | Objects_48 | Objects_49 | Objects_50 | Objects_51 | Objects_52 | Objects_53 | Objects_54 | Objects_55 | Objects_56 | Objects_57 | Objects_58, readonly "sourceBlocks"?: ReadonlyArray<{ readonly "origin"?: Objects_45 | Objects_46 | Objects_47 | Objects_48 | Objects_49 | Objects_50 | Objects_51 | Objects_52 | Objects_53 | Objects_54 | Objects_55 | Objects_56 | Objects_57 | Objects_58, readonly "textOffset": number, readonly "textLength": number }>, readonly "noticesFolded"?: true, readonly "binding"?: { readonly "bindingId": string, readonly "generation": number, readonly "selection": Objects_28, readonly "compatibility": { readonly "match": "native" | "via-adapter" | "unsupported" | "unknown", readonly "reasonCode": "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly "endpointId": string | null, readonly "requestedModelId": string | null, readonly "effectiveOptions": Arrays_8, readonly "conversion": { readonly "id": string, readonly "version": string, readonly "from": string, readonly "to": string, readonly "enabled": boolean, readonly "capabilities": Objects_67, readonly "limitations": ReadonlyArray<string>, readonly "validationRefs": ReadonlyArray<string> } | null, readonly "limitations": ReadonlyArray<string>, readonly "evidence": ReadonlyArray<{ readonly "recordId": string, readonly "freshness": "current" | "stale" }>, readonly "fingerprint": string | null }, readonly "credentialIdentity": { readonly "id": string, readonly "revision": number } | null, readonly "requestedModelId": string, readonly "executedModelId": string | null } | null, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "attempt"?: { readonly "attemptId": string, readonly "intentId": string, readonly "workerEpoch": number, readonly "sourceBindingId": string | null, readonly "targetBindingId": string | null, readonly "nativeLocator": Union_26, readonly "stage": "preparing" | "dispatching" | "running" | "reconciling", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "createdAt": string, readonly "updatedAt": string } | null, readonly "deliveredTurnId"?: string | null, readonly "blockedReason"?: string | null, readonly "replacementIntentId"?: string | null, readonly "createdAt": string, readonly "updatedAt": string }> | undefined, readonly "scheduledWakes"?: ReadonlyArray<{ readonly "wakeId": string, readonly "threadId": string, readonly "dueAt": string, readonly "note": string, readonly "createdBy": Objects_68 | Objects_69 | Objects_70, readonly "state": "scheduled" | "fired" | "cancelled", readonly "afterServerUpgrade": boolean, readonly "scheduledOnServerVersion": string | null, readonly "intentId": string | null, readonly "skipped"?: true, readonly "firedAt": string | null, readonly "cancelledAt": string | null, readonly "upgrade"?: { readonly "requestedVersion": string, readonly "updateId": string | null, readonly "expectsVerdict"?: boolean | undefined, readonly "outcome": Union_27 } | undefined, readonly "repeat"?: Objects_71 | undefined, readonly "createdAt": string, readonly "updatedAt": string }> | undefined, readonly "turnQueuePaused"?: boolean | undefined, readonly "turnQueuePauseSource"?: "automatic-failure" | "manual" | "unknown" | undefined, readonly "acceptedInteractionRequestIds"?: ReadonlyArray<string> | undefined, readonly "titleRegeneration"?: Objects_37 | null | undefined, readonly "titleState"?: Objects_38 | null | undefined, readonly "deletedAt": string | null, readonly "messages": ReadonlyArray<{ readonly "rewrite"?: Union_18, readonly "id": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "attachments"?: ReadonlyArray<Union_28> | undefined, readonly "turnId": string | null, readonly "streaming": boolean, readonly "author"?: Union_19, readonly "recordId"?: string | undefined, readonly "modelSelection"?: Union_20, readonly "source"?: Union_21, readonly "origin"?: Union_22, readonly "createdAt": string, readonly "updatedAt": string }>, readonly "proposedPlans": ReadonlyArray<{ readonly "id": string, readonly "turnId": string | null, readonly "planMarkdown": string, readonly "implementedAt": string | null, readonly "implementationThreadId": string | null, readonly "createdAt": string, readonly "updatedAt": string }>, readonly "activities": ReadonlyArray<{ readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "payload": unknown, readonly "turnId": string | null, readonly "sequence"?: number | undefined, readonly "createdAt": string }>, readonly "checkpoints": ReadonlyArray<{ readonly "turnId": string, readonly "checkpointTurnCount": number, readonly "checkpointRef": string, readonly "status": "ready" | "missing" | "error", readonly "files": ReadonlyArray<{ readonly "path": string, readonly "kind": string, readonly "additions": number, readonly "deletions": number }>, readonly "assistantMessageId": string | null, readonly "completedAt": string }>, readonly "turnSummaries"?: ReadonlyArray<{ readonly "turnId": string, readonly "userMessageId"?: string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "waitSpans"?: Arrays_9, readonly "runSegments"?: Arrays_10 }> | undefined, readonly "session": Objects_39 | null }, readonly "page"?: { readonly "beforeCursor": string | null, readonly "hasMore": boolean, readonly "afterCursor"?: string | null, readonly "hasNewer"?: boolean, readonly "boundedHistory"?: boolean, readonly "history"?: { readonly "turnIds": ReadonlyArray<string>, readonly "messageIds": ReadonlyArray<string>, readonly "activityIds": ReadonlyArray<string>, readonly "proposedPlanIds": ReadonlyArray<string>, readonly "checkpointTurnIds": ReadonlyArray<string>, readonly "turnIntentIds": ReadonlyArray<string> }, readonly "snapshotSequence": number, readonly "threadSequence"?: number } | undefined };
580
- export type ThreadsSearchInput = { readonly "query": string, readonly "limit"?: number, readonly "includeArchived"?: boolean, readonly "createdAfter"?: string, readonly "createdBefore"?: string, readonly "cursor"?: number, readonly "projectId"?: string };
581
- export type ThreadsSearchOutput = { readonly "matches": ReadonlyArray<{ readonly "threadId": string, readonly "projectId": string, readonly "source": "user" | "assistant", readonly "snippet": string, readonly "messageCreatedAt": string | null, readonly "messageId"?: string, readonly "threadTitle"?: string, readonly "projectName"?: string, readonly "archivedAt"?: string | null }>, readonly "filtersApplied"?: boolean, readonly "nextCursor"?: number | null };
582
- export type ThreadsResumeCommandGetInput = { readonly "threadId": string };
583
- export type ThreadsResumeCommandGetOutput = { readonly "command": string | null, readonly "provider": string | null };
584
- export type ThreadsAgentsHistoryPageInput = { readonly "threadId": string, readonly "agentKey": string, readonly "before"?: string, readonly "after"?: string, readonly "limit"?: number, readonly "textLimit"?: number };
585
- export type ThreadsAgentsHistoryPageOutput = { readonly "sourceEpoch": string, readonly "status": "available" | "unsupported" | "unavailable", readonly "reason"?: "unsupported-provider" | "provider-unavailable" | "native-session-unavailable" | "history-unavailable" | "agent-not-found", readonly "items": ReadonlyArray<{ readonly "id": string, readonly "kind": "message" | "tool_call" | "tool_result" | "record", readonly "role"?: "user" | "assistant" | "system", readonly "name"?: string, readonly "toolCallId"?: string, readonly "createdAt"?: string, readonly "sourceTruncated"?: boolean, readonly "text": string, readonly "textWindow"?: Objects_59, readonly "orderKey": string, readonly "beforeCursor": string | null, readonly "afterCursor": string | null }>, readonly "olderCursor": string | null, readonly "newerCursor": string | null, readonly "liveCursor": Objects_62 };
586
- export type ThreadsAgentsHistoryGetInput = { readonly "threadId": string, readonly "agentKey": string, readonly "cursor"?: string, readonly "textLimit"?: number, readonly "limit"?: number };
587
- export type ThreadsAgentsHistoryGetOutput = { readonly "status": "available" | "unsupported" | "unavailable", readonly "reason"?: "unsupported-provider" | "provider-unavailable" | "native-session-unavailable" | "history-unavailable" | "agent-not-found", readonly "items": ReadonlyArray<{ readonly "id": string, readonly "kind": "message" | "tool_call" | "tool_result" | "record", readonly "role"?: "user" | "assistant" | "system", readonly "name"?: string, readonly "toolCallId"?: string, readonly "createdAt"?: string, readonly "sourceTruncated"?: boolean, readonly "text": string, readonly "textWindow"?: Objects_59 }>, readonly "nextCursor": string | null };
588
- export type ThreadsAgentsCountInput = { readonly "threadId": string };
589
- export type ThreadsAgentsCountOutput = { readonly "count": number };
590
- export type ThreadsAgentsListInput = { readonly "threadId": string, readonly "cursor"?: string | null, readonly "limit"?: number };
591
- export type ThreadsAgentsListOutput = { readonly "agents": ReadonlyArray<{ readonly "agentKey": string, readonly "source": "thread" | "task", readonly "provider": string, readonly "agentId": string, readonly "kind": "subagent" | "workflow" | "workflow_member" | "child_thread", readonly "status": "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted" | "deleted", readonly "title": string, readonly "titleDisplayKind"?: "provider" | "agent-index" | undefined, readonly "spawnedSequence": number, readonly "firstSeenAt": string, readonly "updatedAt": string, readonly "agentThreadId"?: string | undefined, readonly "parentAgentKey"?: string | undefined, readonly "nativeSessionId"?: string | undefined, readonly "role"?: string | undefined, readonly "model"?: string | undefined, readonly "effort"?: string | undefined, readonly "activationCount"?: number | undefined, readonly "lastToolName"?: string | undefined, readonly "usage"?: Union_32, readonly "startedAt"?: string | undefined, readonly "completedAt"?: string | undefined, readonly "statusInferred"?: boolean | undefined, readonly "agentThreadDeleted"?: boolean | undefined, readonly "workflow"?: { readonly "agentIndex"?: number | undefined, readonly "phaseIndex"?: number | undefined, readonly "attempt"?: number | undefined } | undefined }>, readonly "nextCursor": string | null };
592
- export type ThreadsAgentsGetInput = { readonly "threadId": string, readonly "agentKey": string, readonly "part"?: "progress" | "result" | "error", readonly "textOffset"?: number, readonly "textLimit"?: number };
593
- export type ThreadsAgentsGetOutput = { readonly "agent"?: { readonly "agentKey": string, readonly "source": "thread" | "task", readonly "provider": string, readonly "agentId": string, readonly "kind": "subagent" | "workflow" | "workflow_member" | "child_thread", readonly "status": "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted" | "deleted", readonly "title": string, readonly "titleDisplayKind"?: "provider" | "agent-index" | undefined, readonly "spawnedSequence": number, readonly "firstSeenAt": string, readonly "updatedAt": string, readonly "agentThreadId"?: string | undefined, readonly "parentAgentKey"?: string | undefined, readonly "nativeSessionId"?: string | undefined, readonly "role"?: string | undefined, readonly "model"?: string | undefined, readonly "effort"?: string | undefined, readonly "activationCount"?: number | undefined, readonly "progress"?: string | undefined, readonly "lastToolName"?: string | undefined, readonly "result"?: string | undefined, readonly "error"?: string | undefined, readonly "usage"?: Union_32, readonly "startedAt"?: string | undefined, readonly "completedAt"?: string | undefined, readonly "statusInferred"?: boolean | undefined, readonly "agentThreadDeleted"?: boolean | undefined, readonly "workflow"?: { readonly "name"?: string | undefined, readonly "agentIndex"?: number | undefined, readonly "phaseIndex"?: number | undefined, readonly "phaseTitle"?: string | undefined, readonly "phases"?: ReadonlyArray<{ readonly "index": number, readonly "title": string }> | undefined, readonly "attempt"?: number | undefined, readonly "runHandles"?: { readonly "runId"?: string | undefined, readonly "scriptPath"?: string | undefined, readonly "transcriptDir"?: string | undefined, readonly "sessionUrl"?: string | undefined } | undefined, readonly "outputFile"?: string | undefined } | undefined, readonly "progressWindow"?: Objects_59, readonly "resultWindow"?: Objects_59, readonly "errorWindow"?: Objects_59 } };
594
- export type ThreadsTasksListInput = { readonly "threadId": string, readonly "kind"?: "agent" | "background" | "inert", readonly "active"?: boolean, readonly "limit"?: number, readonly "after"?: string };
595
- export type ThreadsTasksListOutput = { readonly "tasks": ReadonlyArray<{ readonly "taskKey": string, readonly "activationKey": string, readonly "provider": string, readonly "taskId": string, readonly "activationSequence": number, readonly "bindingGeneration": number | null, readonly "kind": "agent" | "background" | "inert", readonly "taskType"?: string, readonly "ownerAgentId"?: string, readonly "timelineBypass"?: boolean, readonly "status": "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted", readonly "statusInferred": boolean, readonly "title": string, readonly "originTurnId": string | null, readonly "startedAt": string, readonly "endedAt": string | null, readonly "updatedAt": string, readonly "lastToolName"?: string, readonly "lastToolNameTruncated"?: boolean, readonly "summary"?: string, readonly "summaryTruncated"?: boolean }>, readonly "nextCursor": string | null };
596
- export type ThreadsTurnChangesGetInput = { readonly "threadId": string, readonly "turnId": string, readonly "filePath": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
597
- export type ThreadsTurnChangesGetOutput = { readonly "source": "checkpoint" | "tools" | "unavailable", readonly "text": string, readonly "textWindow"?: Objects_59, readonly "truncated": boolean };
598
- export type ThreadsToolCallGetInput = { readonly "threadId": string, readonly "toolCallId": string, readonly "part"?: "input" | "output" | "original", readonly "textOffset"?: number, readonly "textLimit"?: number };
599
- export type ThreadsToolCallGetOutput = { readonly "invocationId"?: string, readonly "rewrittenBy"?: ReadonlyArray<string>, readonly "original"?: string, readonly "originalTruncated"?: boolean, readonly "originalIsError"?: boolean, readonly "input"?: string | undefined, readonly "inputTruncated"?: boolean | undefined, readonly "output"?: string | undefined, readonly "outputTruncated"?: boolean | undefined, readonly "outputStartOffset"?: number | undefined, readonly "outputEndOffset"?: number | undefined, readonly "outputSequence"?: number | undefined, readonly "outputTurnId"?: string | undefined, readonly "exitCode"?: number | undefined, readonly "media"?: ReadonlyArray<Union_28> | undefined, readonly "inputWindow"?: Objects_59, readonly "outputWindow"?: Objects_59, readonly "originalWindow"?: Objects_59 };
600
- export type ThreadsPluginToolPresentationGetInput = { readonly "threadId": string, readonly "invocationId": string };
601
- export type ThreadsPluginToolPresentationGetOutput = { readonly "presentation": unknown | null, readonly "availability"?: "unavailable" | undefined };
602
- export type ThreadsTranscriptGetInput = { readonly "threadId": string, readonly "budgetChars": number };
603
- export type ThreadsTranscriptGetOutput = { readonly "environmentId": string, readonly "threadId": string, readonly "title": string, readonly "throughMessageId": string | null, readonly "messages": ReadonlyArray<{ readonly "role": "user" | "assistant", readonly "text": string, readonly "createdAt": string }>, readonly "omittedMessages": number };
604
- export type ThreadsExecutionSummaryInput = { readonly "threadId": string, readonly "limit"?: number };
605
- export type ThreadsExecutionSummaryOutput = Objects_42;
606
- export type ThreadsExecutionGetInput = { readonly "threadId": string };
607
- export type ThreadsExecutionGetOutput = { readonly "threadId": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_25, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "branch": string | null, readonly "worktreePath": string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "origin": Objects_30 | null, readonly "forkedFrom": { readonly "sourceThreadId": string, readonly "sourceMessageId": string } | null, readonly "session": { readonly "activeTurnId": string | null, readonly "lastError": string | null, readonly "updatedAt": string, readonly "endReason"?: "server-restart", readonly "failureCategory"?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly "status": string, readonly "providerInstanceId": string | null } | null, readonly "latestTurn": { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "assistantMessageId": string | null, readonly "userMessageId"?: string | undefined, readonly "waitSpans"?: Union_10, readonly "runSegments"?: Union_11 } | null, readonly "turnIntents": ReadonlyArray<{ readonly "intentId": string, readonly "threadId": string, readonly "sequence": number, readonly "commandId": string, readonly "messageId": string, readonly "action"?: Union_25, readonly "deliveredTurnId"?: string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "revision": number, readonly "turn": { readonly "turnId": string | null, readonly "userMessageId": string, readonly "state": "pending" | "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "waitSpans": ReadonlyArray<Objects_35> } | null, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "attempt": { readonly "attemptId": string, readonly "workerEpoch": number, readonly "sourceBindingId": string | null, readonly "targetBindingId": string | null, readonly "nativeLocator": Union_26, readonly "stage": "preparing" | "dispatching" | "running" | "reconciling", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "createdAt": string, readonly "updatedAt": string } | null, readonly "blockedReason": string | null, readonly "replacementIntentId": string | null }>, readonly "queuePaused": boolean, readonly "providerProcessLive": boolean, readonly "hasPendingApprovals": boolean, readonly "hasPendingUserInput": boolean, readonly "pendingApprovalCount": number, readonly "pendingUserInputCount": number, readonly "turnStartCount": number } | null;
608
- export type ThreadsTurnStartsCountInput = { readonly "threadIds": ReadonlyArray<string> };
178
+ export type ThreadsArchivedListOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
179
+ export type ThreadsHistoryInput = { readonly threadId: string, readonly turnLimit?: number, readonly beforeCursor?: string, readonly afterCursor?: string, readonly aroundTurnId?: string, readonly boundedHistory?: boolean };
180
+ export type ThreadsHistoryOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly actualModel?: { readonly selection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly requested: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt: string | null, readonly implementationThreadId: string | null, readonly createdAt: string, readonly updatedAt: string }>, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
181
+ export type ThreadsSearchInput = { readonly query: string, readonly limit?: number, readonly includeArchived?: boolean, readonly createdAfter?: string, readonly createdBefore?: string, readonly cursor?: number, readonly projectId?: string };
182
+ export type ThreadsSearchOutput = { readonly matches: ReadonlyArray<{ readonly threadId: string, readonly projectId: string, readonly source: "user" | "assistant", readonly snippet: string, readonly messageCreatedAt: string | null, readonly messageId?: string, readonly threadTitle?: string, readonly projectName?: string, readonly archivedAt?: string | null }>, readonly filtersApplied?: boolean, readonly nextCursor?: number | null };
183
+ export type ThreadsResumeCommandGetInput = { readonly threadId: string };
184
+ export type ThreadsResumeCommandGetOutput = { readonly command: string | null, readonly provider: string | null };
185
+ export type ThreadsAgentsHistoryPageInput = { readonly threadId: string, readonly agentKey: string, readonly before?: string, readonly after?: string, readonly limit?: number, readonly textLimit?: number };
186
+ export type ThreadsAgentsHistoryPageOutput = { readonly sourceEpoch: string, readonly status: "available" | "unsupported" | "unavailable", readonly reason?: "unsupported-provider" | "provider-unavailable" | "native-session-unavailable" | "history-unavailable" | "agent-not-found", readonly items: ReadonlyArray<{ readonly id: string, readonly kind: "message" | "tool_call" | "tool_result" | "record", readonly role?: "user" | "assistant" | "system", readonly name?: string, readonly toolCallId?: string, readonly createdAt?: string, readonly sourceTruncated?: boolean, readonly text: string, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly orderKey: string, readonly beforeCursor: string | null, readonly afterCursor: string | null }>, readonly olderCursor: string | null, readonly newerCursor: string | null, readonly liveCursor: { readonly epoch: string, readonly sequence: number } };
187
+ export type ThreadsAgentsHistoryGetInput = { readonly threadId: string, readonly agentKey: string, readonly cursor?: string, readonly textLimit?: number, readonly limit?: number };
188
+ export type ThreadsAgentsHistoryGetOutput = { readonly status: "available" | "unsupported" | "unavailable", readonly reason?: "unsupported-provider" | "provider-unavailable" | "native-session-unavailable" | "history-unavailable" | "agent-not-found", readonly items: ReadonlyArray<{ readonly id: string, readonly kind: "message" | "tool_call" | "tool_result" | "record", readonly role?: "user" | "assistant" | "system", readonly name?: string, readonly toolCallId?: string, readonly createdAt?: string, readonly sourceTruncated?: boolean, readonly text: string, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
189
+ export type ThreadsAgentsCountInput = { readonly threadId: string };
190
+ export type ThreadsAgentsCountOutput = { readonly count: number };
191
+ export type ThreadsAgentsListInput = { readonly threadId: string, readonly cursor?: string | null, readonly limit?: number };
192
+ export type ThreadsAgentsListOutput = { readonly agents: ReadonlyArray<{ readonly agentKey: string, readonly source: "thread" | "task", readonly provider: string, readonly agentId: string, readonly kind: "subagent" | "workflow" | "workflow_member" | "child_thread", readonly status: "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted" | "deleted", readonly title: string, readonly titleDisplayKind?: "provider" | "agent-index" | undefined, readonly spawnedSequence: number, readonly firstSeenAt: string, readonly updatedAt: string, readonly agentThreadId?: string | undefined, readonly parentAgentKey?: string | undefined, readonly nativeSessionId?: string | undefined, readonly role?: string | undefined, readonly model?: string | undefined, readonly effort?: string | undefined, readonly activationCount?: number | undefined, readonly lastToolName?: string | undefined, readonly usage?: { readonly totalTokens: number, readonly inputTokens?: number | undefined, readonly cachedInputTokens?: number | undefined, readonly outputTokens?: number | undefined, readonly reasoningOutputTokens?: number | undefined, readonly toolUses?: number | undefined, readonly durationMs?: number | undefined } | undefined, readonly startedAt?: string | undefined, readonly completedAt?: string | undefined, readonly statusInferred?: boolean | undefined, readonly agentThreadDeleted?: boolean | undefined, readonly workflow?: { readonly agentIndex?: number | undefined, readonly phaseIndex?: number | undefined, readonly attempt?: number | undefined } | undefined }>, readonly nextCursor: string | null };
193
+ export type ThreadsAgentsGetInput = { readonly threadId: string, readonly agentKey: string, readonly part?: "progress" | "result" | "error", readonly textOffset?: number, readonly textLimit?: number };
194
+ export type ThreadsAgentsGetOutput = { readonly agent?: { readonly agentKey: string, readonly source: "thread" | "task", readonly provider: string, readonly agentId: string, readonly kind: "subagent" | "workflow" | "workflow_member" | "child_thread", readonly status: "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted" | "deleted", readonly title: string, readonly titleDisplayKind?: "provider" | "agent-index" | undefined, readonly spawnedSequence: number, readonly firstSeenAt: string, readonly updatedAt: string, readonly agentThreadId?: string | undefined, readonly parentAgentKey?: string | undefined, readonly nativeSessionId?: string | undefined, readonly role?: string | undefined, readonly model?: string | undefined, readonly effort?: string | undefined, readonly activationCount?: number | undefined, readonly progress?: string | undefined, readonly lastToolName?: string | undefined, readonly result?: string | undefined, readonly error?: string | undefined, readonly usage?: { readonly totalTokens: number, readonly inputTokens?: number | undefined, readonly cachedInputTokens?: number | undefined, readonly outputTokens?: number | undefined, readonly reasoningOutputTokens?: number | undefined, readonly toolUses?: number | undefined, readonly durationMs?: number | undefined } | undefined, readonly startedAt?: string | undefined, readonly completedAt?: string | undefined, readonly statusInferred?: boolean | undefined, readonly agentThreadDeleted?: boolean | undefined, readonly workflow?: { readonly name?: string | undefined, readonly agentIndex?: number | undefined, readonly phaseIndex?: number | undefined, readonly phaseTitle?: string | undefined, readonly phases?: ReadonlyArray<{ readonly index: number, readonly title: string }> | undefined, readonly attempt?: number | undefined, readonly runHandles?: { readonly runId?: string | undefined, readonly scriptPath?: string | undefined, readonly transcriptDir?: string | undefined, readonly sessionUrl?: string | undefined } | undefined, readonly outputFile?: string | undefined } | undefined, readonly progressWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly resultWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly errorWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } } };
195
+ export type ThreadsTasksListInput = { readonly threadId: string, readonly kind?: "agent" | "background" | "inert", readonly active?: boolean, readonly limit?: number, readonly after?: string };
196
+ export type ThreadsTasksListOutput = { readonly tasks: ReadonlyArray<{ readonly taskKey: string, readonly activationKey: string, readonly provider: string, readonly taskId: string, readonly activationSequence: number, readonly bindingGeneration: number | null, readonly kind: "agent" | "background" | "inert", readonly taskType?: string, readonly ownerAgentId?: string, readonly timelineBypass?: boolean, readonly status: "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted", readonly statusInferred: boolean, readonly title: string, readonly originTurnId: string | null, readonly startedAt: string, readonly endedAt: string | null, readonly updatedAt: string, readonly lastToolName?: string, readonly lastToolNameTruncated?: boolean, readonly summary?: string, readonly summaryTruncated?: boolean }>, readonly nextCursor: string | null };
197
+ export type ThreadsTurnChangesGetInput = { readonly threadId: string, readonly turnId: string, readonly filePath: string, readonly textOffset?: number, readonly textLimit?: number };
198
+ export type ThreadsTurnChangesGetOutput = { readonly source: "checkpoint" | "tools" | "unavailable", readonly text: string, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly truncated: boolean };
199
+ export type ThreadsToolCallGetInput = { readonly threadId: string, readonly toolCallId: string, readonly part?: "input" | "output" | "original", readonly textOffset?: number, readonly textLimit?: number };
200
+ export type ThreadsToolCallGetOutput = { readonly invocationId?: string, readonly rewrittenBy?: ReadonlyArray<string>, readonly original?: string, readonly originalTruncated?: boolean, readonly originalIsError?: boolean, readonly input?: string | undefined, readonly inputTruncated?: boolean | undefined, readonly output?: string | undefined, readonly outputTruncated?: boolean | undefined, readonly outputStartOffset?: number | undefined, readonly outputEndOffset?: number | undefined, readonly outputSequence?: number | undefined, readonly outputTurnId?: string | undefined, readonly exitCode?: number | undefined, readonly commandOutputNotRetained?: boolean, readonly commandOutputNotRetainedReason?: "server-restart", readonly commandResultUnknown?: boolean, readonly media?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly inputWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly outputWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly originalWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
201
+ export type ThreadsPluginToolPresentationGetInput = { readonly threadId: string, readonly invocationId: string };
202
+ export type ThreadsPluginToolPresentationGetOutput = { readonly presentation: unknown | null, readonly availability?: "unavailable" | undefined };
203
+ export type ThreadsTranscriptGetInput = { readonly threadId: string, readonly budgetChars: number };
204
+ export type ThreadsTranscriptGetOutput = { readonly environmentId: string, readonly threadId: string, readonly title: string, readonly throughMessageId: string | null, readonly messages: ReadonlyArray<{ readonly role: "user" | "assistant", readonly text: string, readonly createdAt: string }>, readonly omittedMessages: number };
205
+ export type ThreadsExecutionSummaryInput = { readonly threadId: string, readonly limit?: number };
206
+ export type ThreadsExecutionSummaryOutput = { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" };
207
+ export type ThreadsExecutionGetInput = { readonly threadId: string };
208
+ export type ThreadsExecutionGetOutput = { readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly origin: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string } | null, readonly session: { readonly activeTurnId: string | null, readonly lastError: string | null, readonly updatedAt: string, readonly endReason?: "server-restart", readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit", readonly status: string, readonly providerInstanceId: string | null } | null, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly turnIntents: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly deliveredTurnId?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly revision: number, readonly turn: { readonly turnId: string | null, readonly userMessageId: string, readonly state: "pending" | "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt: { readonly attemptId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly blockedReason: string | null, readonly replacementIntentId: string | null }>, readonly queuePaused: boolean, readonly providerProcessLive: boolean, readonly hasPendingApprovals: boolean, readonly hasPendingUserInput: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly turnStartCount: number } | null;
209
+ export type ThreadsTurnStartsCountInput = { readonly threadIds: ReadonlyArray<string> };
609
210
  export type ThreadsTurnStartsCountOutput = number;
610
- export type ThreadsMessagesGetInput = { readonly "messageId": string };
611
- export type ThreadsMessagesGetOutput = { readonly "messageId": string, readonly "role": string, readonly "text": string, readonly "turnId": string | null, readonly "createdAt": string, readonly "modelSelection"?: Objects_25 | undefined, readonly "source"?: Objects_44 | undefined, readonly "attachments": ReadonlyArray<Union_28> } | null;
612
- export type ThreadsUserInputPendingListInput = { readonly "threadId": string };
613
- export type ThreadsUserInputPendingListOutput = ReadonlyArray<{ readonly "requestId": string, readonly "createdAt": string, readonly "questions": ReadonlyArray<{ readonly "id": string, readonly "header": string, readonly "question": string, readonly "options": ReadonlyArray<{ readonly "value": string, readonly "label": string, readonly "description": string, readonly "planAction"?: "approve" | "revise" | "stop", readonly "displayKind"?: "acknowledge" }>, readonly "multiSelect": boolean, readonly "allowFreeform": boolean, readonly "kind": "question" | "plan" }> }>;
614
- export type ThreadsCommandReceiptsGetInput = { readonly "commandId": string, readonly "commandType": string, readonly "threadId"?: string };
615
- export type ThreadsCommandReceiptsGetOutput = { readonly "status": "absent" } | { readonly "status": "accepted", readonly "sequence": number, readonly "result"?: unknown } | { readonly "status": "rejected", readonly "error": string | null };
616
- export type ThreadsDecisionsRequestInput = { readonly "threadId": string, readonly "title": string, readonly "body"?: string | ReadonlyArray<string>, readonly "detail"?: { readonly "label"?: string, readonly "text": string, readonly "language"?: string }, readonly "options": ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "tone"?: "default" | "primary" | "danger" }>, readonly "requestId"?: string };
617
- export type ThreadsDecisionsRequestOutput = { readonly "requestId": string };
618
- export type ThreadsDecisionsCancelInput = { readonly "requestId": string, readonly "summary"?: string };
211
+ export type ThreadsMessagesGetInput = { readonly messageId: string };
212
+ export type ThreadsMessagesGetOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
213
+ export type ThreadsUserInputPendingListInput = { readonly threadId: string };
214
+ export type ThreadsUserInputPendingListOutput = ReadonlyArray<{ readonly requestId: string, readonly createdAt: string, readonly questions: ReadonlyArray<{ readonly id: string, readonly header: string, readonly question: string, readonly options: ReadonlyArray<{ readonly value: string, readonly label: string, readonly description: string, readonly planAction?: "approve" | "revise" | "stop", readonly displayKind?: "acknowledge" }>, readonly multiSelect: boolean, readonly allowFreeform: boolean, readonly kind: "question" | "plan" }> }>;
215
+ export type ThreadsCommandReceiptsGetInput = { readonly commandId: string, readonly commandType: string, readonly threadId?: string };
216
+ export type ThreadsCommandReceiptsGetOutput = { readonly status: "absent" } | { readonly status: "accepted", readonly sequence: number, readonly result?: unknown } | { readonly status: "rejected", readonly error: string | null };
217
+ export type ThreadsDecisionsRequestInput = { readonly threadId: string, readonly title: string, readonly body?: string | ReadonlyArray<string>, readonly detail?: { readonly label?: string, readonly text: string, readonly language?: string }, readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly tone?: "default" | "primary" | "danger" }>, readonly requestId?: string };
218
+ export type ThreadsDecisionsRequestOutput = { readonly requestId: string };
219
+ export type ThreadsDecisionsCancelInput = { readonly requestId: string, readonly summary?: string };
619
220
  export type ThreadsDecisionsCancelOutput = { };
620
- export type ThreadsGetInput = { readonly "threadId": string };
621
- export type ThreadsGetOutput = Objects_66;
622
- export type ThreadsTimeGetInput = { readonly "threadId": string, readonly "since"?: string, readonly "until"?: string, readonly "cursor"?: string | null, readonly "limit"?: number };
623
- export type ThreadsTimeGetOutput = { readonly "readAt": string, readonly "agentRunningMs": number, readonly "waitingForYouMs": number, readonly "approvalWaitMs": number, readonly "userInputWaitMs": number, readonly "turns": ReadonlyArray<{ readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "startedAt": string, readonly "completedAt": string | null, readonly "agentRunningMs": number, readonly "waitingForYouMs": number, readonly "approvalWaitMs": number, readonly "userInputWaitMs": number }>, readonly "nextCursor": string | null };
624
- export type ThreadsToolCallsListInput = { readonly "threadId": string, readonly "source"?: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly "pluginId"?: string, readonly "mcpServer"?: string, readonly "turnIds"?: ReadonlyArray<string>, readonly "cursor"?: string | null, readonly "limit"?: number };
625
- export type ThreadsToolCallsListOutput = { readonly "calls": ReadonlyArray<{ readonly "id": string, readonly "kind": "tool-call", readonly "createdAt": string, readonly "turnId": string | null, readonly "status": "running" | "completed" | "failed" | "declined" | "stopped" | "unknown", readonly "summary": string, readonly "durationMs"?: number, readonly "activityId": string, readonly "updatedActivityId": string, readonly "toolCallId"?: string, readonly "chatAnchorRowId"?: string, readonly "invocationId"?: string, readonly "rewrittenBy"?: ReadonlyArray<string>, readonly "builtinMcpTool"?: string, readonly "toolArgs"?: { readonly "threadId"?: string, readonly "projectId"?: string, readonly "instanceId"?: string, readonly "environmentId"?: string, readonly "machine"?: string, readonly "to"?: { readonly "threadId"?: string, readonly "environmentId"?: string } }, readonly "source": "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly "toolName"?: string, readonly "pluginId"?: string, readonly "mcpServer"?: string, readonly "action"?: "skill-read", readonly "skillName"?: string }>, readonly "turnContexts": ReadonlyArray<{ readonly "turnId": string | null, readonly "counts": { readonly "totalCalls": number, readonly "failedCalls": number, readonly "matchedCalls": number, readonly "matchedFailedCalls": number }, readonly "summary"?: { readonly "turnId": string, readonly "userMessageId"?: string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "waitSpans"?: Arrays_9, readonly "runSegments"?: Arrays_10 }, readonly "userMessage"?: { readonly "id": string, readonly "createdAt": string, readonly "text": string, readonly "truncated": boolean }, readonly "assistantMessage"?: { readonly "id": string, readonly "createdAt": string, readonly "text": string, readonly "truncated": boolean } }>, readonly "sources": ReadonlyArray<{ readonly "source": "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly "pluginId"?: string, readonly "mcpServer"?: string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
626
- export type ThreadsMessagesListInput = { readonly "threadId": string, readonly "messageId"?: string, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "includeTotal"?: boolean, readonly "attachmentOffset"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number };
627
- export type ThreadsMessagesListOutput = Objects_43;
628
- export type ThreadsActivitiesListInput = { readonly "threadId": string, readonly "kinds": ReadonlyArray<string>, readonly "inTurn"?: "any" | "none", readonly "cursor"?: string | null, readonly "limit"?: number, readonly "maxPayloadBytes"?: number, readonly "maxPageBytes"?: number };
629
- export type ThreadsActivitiesListOutput = { readonly "items": ReadonlyArray<{ readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "turnId": string | null, readonly "sequence"?: number | undefined, readonly "createdAt": string, readonly "payload": unknown, readonly "payloadOmitted"?: undefined, readonly "toolCallId"?: undefined } | { readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "turnId": string | null, readonly "sequence"?: number | undefined, readonly "createdAt": string, readonly "payload"?: undefined, readonly "payloadOmitted": { readonly "bytes": number }, readonly "toolCallId"?: string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
630
- export type ProjectsListInput = { readonly "archived"?: "exclude" | "include" | "only", readonly "repositoryIdentity"?: "resolve" | "skip" };
631
- export type ProjectsListOutput = ReadonlyArray<Objects_64>;
632
- export type ProjectsGetInput = { readonly "projectId": string };
633
- export type ProjectsGetOutput = Objects_64;
634
- export type ProjectsToolkitsGetInput = { readonly "projectId": string };
635
- export type ProjectsToolkitsGetOutput = { readonly "projectId": string, readonly "memoryInjection"?: boolean, readonly "toolkits": ReadonlyArray<{ readonly "toolkit": "board" | "memory" | "messages", readonly "enabled": boolean }> };
636
- export type CommunicationRecordsGetInput = { readonly "recordIds": ReadonlyArray<string>, readonly "textOffset"?: number, readonly "textLimit"?: number };
637
- export type CommunicationRecordsGetOutput = ReadonlyArray<{ readonly "recordId": string, readonly "from": Union_33, readonly "to": Union_34, readonly "replyTo": string | null, readonly "text": string | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "createdAt": string, readonly "stages": Objects_77, readonly "idempotencyKey"?: string | undefined, readonly "runId"?: string | undefined, readonly "toRole"?: string | undefined, readonly "attachments"?: Union_35, readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable", readonly "projectId": string | null, readonly "sequence": number, readonly "claim": Union_37, readonly "textWindow"?: Objects_59, readonly "group"?: Objects_79, readonly "mentions"?: Arrays_11, readonly "targets"?: Arrays_12, readonly "workItem"?: Objects_81, readonly "childReport"?: CommunicationChildReport }>;
638
- export type CommunicationRecordsListInput = Objects_82 | Objects_83 | Objects_84 | Objects_85;
639
- export type CommunicationRecordsListOutput = Objects_86;
640
- export type CommunicationInboxListInput = { readonly "memberId"?: string, readonly "projectId"?: string, readonly "pendingOnly"?: boolean, readonly "cursor"?: string | null, readonly "limit"?: number };
641
- export type CommunicationInboxListOutput = Objects_86;
642
- export type CommunicationPeopleListInput = { readonly "projectId": string, readonly "cursor"?: string | null, readonly "limit"?: number };
643
- export type CommunicationPeopleListOutput = { readonly "items": ReadonlyArray<{ readonly "person": Union_39, readonly "displayName": string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
644
- export type CommunicationRecordsSendInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "to": { readonly "threadId": string } | Objects_88 | Objects_89 | { readonly "remoteThread": Objects_90 } | { readonly "group": { readonly "threadId": string } } | { readonly "workItemId": string }, readonly "aboutThreadId"?: string, readonly "text": string, readonly "replyTo"?: string, readonly "delivery"?: "quiet" | "wake" | "steer", readonly "mentions"?: ReadonlyArray<{ readonly "memberId": string }>, readonly "attachments"?: ReadonlyArray<{ readonly "path": string, readonly "name"?: string, readonly "mimeType"?: string } | { readonly "attachmentId": string, readonly "name": string, readonly "mimeType"?: string, readonly "sourcePath"?: string }> };
645
- export type CommunicationRecordsSendOutput = { readonly "sequence": number, readonly "result": { readonly "recordId": string, readonly "recordSequence": number | null, readonly "recipientWarnings"?: ReadonlyArray<Objects_91> }, readonly "replayed"?: boolean };
646
- export type CommunicationRecordsWithdrawInput = Objects_92;
647
- export type CommunicationRecordsWithdrawOutput = { readonly "sequence": number, readonly "result": { readonly "recordId": string }, readonly "replayed"?: boolean };
648
- export type CommunicationRecordsDeleteInput = Objects_92;
649
- export type CommunicationRecordsDeleteOutput = { readonly "sequence": number, readonly "result": { readonly "recordId": string }, readonly "replayed"?: boolean };
650
- export type CommunicationDeliveriesBindInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "recordId": string, readonly "targetKey": string, readonly "to": { readonly "threadId": string } | Objects_88 | Objects_89 | { readonly "remoteThread": Objects_90 } };
651
- export type CommunicationDeliveriesBindOutput = { readonly "sequence": number, readonly "result": { readonly "recordId": string, readonly "targetKey": string }, readonly "replayed"?: boolean };
652
- export type CommunicationDeliveriesListUnboundInput = { readonly "projectId": string, readonly "cursor"?: string | null, readonly "limit"?: number };
653
- export type CommunicationDeliveriesListUnboundOutput = { readonly "items": ReadonlyArray<{ readonly "recordId": string, readonly "targetKey": string, readonly "member": string, readonly "scope": Objects_80 | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "createdAt": string, readonly "sequence": number }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
654
- export type CommunicationRecordsNotifyInput = { readonly "threadId": string, readonly "sourceThreadId": string, readonly "summary": string, readonly "requestId"?: string };
655
- export type CommunicationRecordsNotifyOutput = { readonly "sequence": number, readonly "result": { readonly "recordId": string }, readonly "replayed"?: boolean };
656
- export type ApprovalsPendingListInput = { readonly "threadId": string };
657
- export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly "requestId": string, readonly "activityId"?: string | undefined, readonly "decision"?: { readonly "askedBy": { readonly "kind": "plugin", readonly "pluginId": string } | { readonly "kind": "host", readonly "feature": string }, readonly "options": ReadonlyArray<{ readonly "id": string, readonly "label": { readonly "text": string, readonly "key"?: string | undefined, readonly "params"?: { readonly [x: string]: string | number } | undefined }, readonly "tone"?: "default" | "primary" | "danger" | undefined }> } | undefined, readonly "requestKind": "command" | "file-read" | "file-change" | "web-fetch" | "web-search" | "skill" | "mcp-tool" | "mcp-elicitation" | "tool", readonly "createdAt": string, readonly "summary"?: string | undefined, readonly "detail"?: string | undefined, readonly "appName"?: string | undefined, readonly "options"?: ReadonlyArray<{ readonly "decision": "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly "label": string, readonly "displayKind"?: "standard" | undefined }> | undefined, readonly "statement"?: { readonly "description"?: string | undefined, readonly "justification"?: string | undefined, readonly "command"?: string | undefined, readonly "outsideSandbox"?: true | undefined, readonly "coveredArgs"?: ReadonlyArray<string> | undefined } | undefined, readonly "declineReasonRelay"?: "native" | "queued" | "none" | undefined }>;
221
+ export type ThreadsGetInput = { readonly threadId: string };
222
+ export type ThreadsGetOutput = { readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly settledOverride: "settled" | "active" | null, readonly settledAt: string | null, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: "quota" | "rate-limit" | "context-limit" | "auth" | "model-unavailable" | "transport" | "unknown" | "process-exit" | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined };
223
+ export type ThreadsTimeGetInput = { readonly threadId: string, readonly since?: string, readonly until?: string, readonly cursor?: string | null, readonly limit?: number };
224
+ export type ThreadsTimeGetOutput = { readonly readAt: string, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number, readonly turns: ReadonlyArray<{ readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string, readonly completedAt: string | null, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number }>, readonly nextCursor: string | null };
225
+ export type ThreadsToolCallsListInput = { readonly threadId: string, readonly source?: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string, readonly turnIds?: ReadonlyArray<string>, readonly cursor?: string | null, readonly limit?: number };
226
+ export type ThreadsToolCallsListOutput = { readonly calls: ReadonlyArray<{ readonly id: string, readonly kind: "tool-call", readonly createdAt: string, readonly turnId: string | null, readonly status: "running" | "completed" | "failed" | "declined" | "stopped" | "unknown", readonly summary: string, readonly durationMs?: number, readonly activityId: string, readonly updatedActivityId: string, readonly toolCallId?: string, readonly chatAnchorRowId?: string, readonly invocationId?: string, readonly rewrittenBy?: ReadonlyArray<string>, readonly builtinMcpTool?: string, readonly toolArgs?: { readonly threadId?: string, readonly projectId?: string, readonly instanceId?: string, readonly environmentId?: string, readonly machine?: string, readonly to?: { readonly threadId?: string, readonly environmentId?: string } }, readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly toolName?: string, readonly pluginId?: string, readonly pluginEntryId?: string, readonly mcpServer?: string, readonly action?: "skill-read", readonly skillName?: string }>, readonly turnContexts: ReadonlyArray<{ readonly turnId: string | null, readonly counts: { readonly totalCalls: number, readonly failedCalls: number, readonly matchedCalls: number, readonly matchedFailedCalls: number }, readonly summary?: { readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }, readonly userMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean }, readonly assistantMessage?: { readonly id: string, readonly createdAt: string, readonly text: string, readonly truncated: boolean } }>, readonly sources: ReadonlyArray<{ readonly source: "native" | "ycodium" | "plugin" | "mcp" | "unknown", readonly pluginId?: string, readonly mcpServer?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
227
+ export type ThreadsMessagesListInput = { readonly threadId: string, readonly messageId?: string, readonly cursor?: string | null, readonly limit?: number, readonly includeTotal?: boolean, readonly attachmentOffset?: number, readonly textOffset?: number, readonly textLimit?: number };
228
+ export type ThreadsMessagesListOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
229
+ export type ThreadsActivitiesListInput = { readonly threadId: string, readonly kinds: ReadonlyArray<string>, readonly inTurn?: "any" | "none", readonly cursor?: string | null, readonly limit?: number, readonly maxPayloadBytes?: number, readonly maxPageBytes?: number };
230
+ export type ThreadsActivitiesListOutput = { readonly items: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload: unknown, readonly payloadOmitted?: undefined, readonly toolCallId?: undefined } | { readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string, readonly payload?: undefined, readonly payloadOmitted: { readonly bytes: number }, readonly toolCallId?: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
231
+ export type ProjectsListInput = { readonly archived?: "exclude" | "include" | "only", readonly repositoryIdentity?: "resolve" | "skip" };
232
+ export type ProjectsListOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
233
+ export type ProjectsGetInput = { readonly projectId: string };
234
+ export type ProjectsGetOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
235
+ export type ProjectsToolkitsGetInput = { readonly projectId: string };
236
+ export type ProjectsToolkitsGetOutput = { readonly projectId: string, readonly memoryInjection?: boolean, readonly toolkits: ReadonlyArray<{ readonly toolkit: "board" | "memory" | "messages", readonly enabled: boolean }> };
237
+ export type CommunicationRecordsGetInput = { readonly recordIds: ReadonlyArray<string>, readonly textOffset?: number, readonly textLimit?: number };
238
+ export type CommunicationRecordsGetOutput = ReadonlyArray<{ readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly text: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | undefined, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport }>;
239
+ export type CommunicationRecordsListInput = { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly threadIds: ReadonlyArray<string> } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly groupThreadId: string };
240
+ export type CommunicationRecordsListOutput = { readonly items: ReadonlyArray<{ readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | undefined, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport, readonly textPreview: string | null, readonly textTruncated: boolean }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
241
+ export type CommunicationInboxListInput = { readonly memberId?: string, readonly projectId?: string, readonly pendingOnly?: boolean, readonly cursor?: string | null, readonly limit?: number };
242
+ export type CommunicationInboxListOutput = { readonly items: ReadonlyArray<{ readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | undefined, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport, readonly textPreview: string | null, readonly textTruncated: boolean }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
243
+ export type CommunicationPeopleListInput = { readonly projectId: string, readonly cursor?: string | null, readonly limit?: number };
244
+ export type CommunicationPeopleListOutput = { readonly items: ReadonlyArray<{ readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string }, readonly displayName: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
245
+ export type CommunicationRecordsSendInput = { readonly projectId: string, readonly requestId?: string, readonly to: { readonly threadId: string } | { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly principalId: string, readonly memberId?: string } | { readonly remoteThread: { readonly environmentId: string, readonly threadId: string, readonly projectId?: string } } | { readonly group: { readonly threadId: string } } | { readonly workItemId: string }, readonly aboutThreadId?: string, readonly text: string, readonly replyTo?: string, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly attachments?: ReadonlyArray<{ readonly path: string, readonly name?: string, readonly mimeType?: string } | { readonly attachmentId: string, readonly name: string, readonly mimeType?: string, readonly sourcePath?: string }> };
246
+ export type CommunicationRecordsSendOutput = { readonly sequence: number, readonly result: { readonly recordId: string, readonly recordSequence: number | null, readonly recipientWarnings?: ReadonlyArray<{ readonly code: "recipient-read-only" | "recipient-continued" | "recipient-not-running" | "recipient-queue-paused" | "recipient-queue-resumed" | "recipient-unanswered-questions" | "recipient-wake-paused" | "group-without-lead" | "group-lead-unavailable", readonly detail: string, readonly threadId?: string }> }, readonly replayed?: boolean };
247
+ export type CommunicationRecordsWithdrawInput = { readonly projectId: string, readonly requestId?: string, readonly recordId: string };
248
+ export type CommunicationRecordsWithdrawOutput = { readonly sequence: number, readonly result: { readonly recordId: string }, readonly replayed?: boolean };
249
+ export type CommunicationRecordsDeleteInput = { readonly projectId: string, readonly requestId?: string, readonly recordId: string };
250
+ export type CommunicationRecordsDeleteOutput = { readonly sequence: number, readonly result: { readonly recordId: string }, readonly replayed?: boolean };
251
+ export type CommunicationDeliveriesBindInput = { readonly projectId: string, readonly requestId?: string, readonly recordId: string, readonly targetKey: string, readonly to: { readonly threadId: string } | { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly principalId: string, readonly memberId?: string } | { readonly remoteThread: { readonly environmentId: string, readonly threadId: string, readonly projectId?: string } } };
252
+ export type CommunicationDeliveriesBindOutput = { readonly sequence: number, readonly result: { readonly recordId: string, readonly targetKey: string }, readonly replayed?: boolean };
253
+ export type CommunicationDeliveriesListUnboundInput = { readonly projectId: string, readonly cursor?: string | null, readonly limit?: number };
254
+ export type CommunicationDeliveriesListUnboundOutput = { readonly items: ReadonlyArray<{ readonly recordId: string, readonly targetKey: string, readonly member: string, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly sequence: number }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
255
+ export type CommunicationRecordsNotifyInput = { readonly threadId: string, readonly sourceThreadId: string, readonly summary: string, readonly requestId?: string };
256
+ export type CommunicationRecordsNotifyOutput = { readonly sequence: number, readonly result: { readonly recordId: string }, readonly replayed?: boolean };
257
+ export type ApprovalsPendingListInput = { readonly threadId: string };
258
+ export type ApprovalsPendingListOutput = ReadonlyArray<{ readonly requestId: string, readonly activityId?: string | undefined, readonly decision?: { readonly askedBy: { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "host", readonly feature: string }, readonly options: ReadonlyArray<{ readonly id: string, readonly label: { readonly text: string, readonly key?: string | undefined, readonly params?: { readonly [x: string]: string | number } | undefined }, readonly tone?: "default" | "primary" | "danger" | undefined }> } | undefined, readonly requestKind: "command" | "file-read" | "file-change" | "web-fetch" | "web-search" | "skill" | "mcp-tool" | "mcp-elicitation" | "tool", readonly createdAt: string, readonly summary?: string | undefined, readonly detail?: string | undefined, readonly appName?: string | undefined, readonly options?: ReadonlyArray<{ readonly decision: "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly label: string, readonly displayKind?: "standard" | undefined }> | undefined, readonly statement?: { readonly description?: string | undefined, readonly justification?: string | undefined, readonly command?: string | undefined, readonly outsideSandbox?: true | undefined, readonly coveredArgs?: ReadonlyArray<string> | undefined } | undefined, readonly declineReasonRelay?: "native" | "queued" | "none" | undefined }>;
658
259
  export type MachineSettingsEditorsGetInput = { };
659
- export type MachineSettingsEditorsGetOutput = { readonly "availableEditors": ReadonlyArray<"file-manager">, readonly "editorDiscovery"?: "pending" | undefined, readonly "shellRevealInFileManager"?: boolean, readonly "shellRevealInFileManagerKind"?: "finder" | "file-explorer" | "files" };
260
+ export type MachineSettingsEditorsGetOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: "pending" | undefined, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
660
261
  export type MachineSettingsProvidersGetInput = { };
661
- export type MachineSettingsProvidersGetOutput = { readonly "providers": Arrays_13 };
262
+ export type MachineSettingsProvidersGetOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
662
263
  export type MachineSettingsKeybindingsGetInput = { };
663
- export type MachineSettingsKeybindingsGetOutput = { readonly "keybindings": Arrays_14, readonly "issues": Arrays_15, readonly "keybindingsConfigPath": string };
664
- export type MachineSettingsUpdateInput = { readonly "patch": { readonly "settingsRevision"?: number, readonly "enableProviderUpdateChecks"?: boolean, readonly "enableAgentBrowserAccess"?: boolean, readonly "browserRetentionBudgetEnabled"?: boolean, readonly "machineBrowserDefaultViewport"?: { readonly "_tag": "fill" } | { readonly "_tag": "freeform", readonly "width": number, readonly "height": number } | { readonly "_tag": "preset", readonly "width": number, readonly "height": number, readonly "presetId": "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly "machineBrowserDefaultZoomFactor"?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly "machineBrowserDefaultAppearance"?: "system" | "light" | "dark", readonly "enableAgentThreadDelegation"?: boolean, readonly "agentThreadDelegationMaxDepth"?: number, readonly "enableAgentSelfDevelopment"?: boolean, readonly "machineTaskConfirmation"?: { readonly "actionIds": ReadonlyArray<string>, readonly "projectIds": ReadonlyArray<string>, readonly "remoteProjectTrust"?: ReadonlyArray<{ readonly "homeEnvironmentId": string, readonly "projectId": string }> }, readonly "backgroundActivity"?: { readonly "schemaVersion"?: 1, readonly "profile"?: "balanced" | "performance" | "battery-saver" | "custom", readonly "baseProfile"?: "balanced" | "performance" | "battery-saver", readonly "overrides"?: { readonly "automaticGitFetchInterval"?: number, readonly "providerHealthRefreshInterval"?: number, readonly "hostPowerMonitorActiveInterval"?: number, readonly "hostPowerMonitorIdleInterval"?: number, readonly "idleClientTtl"?: number, readonly "pauseWhenHostLocked"?: boolean, readonly "pauseWhenHostLowPower"?: boolean, readonly "pauseWhenClientLowPower"?: boolean, readonly "pauseWhenOnBattery"?: boolean } }, readonly "automaticGitFetchInterval"?: number, readonly "providerHealthRefreshInterval"?: number, readonly "npmRegistry"?: string, readonly "pluginUpdateCheck"?: boolean, readonly "backgroundActivityProfile"?: "balanced" | "performance" | "battery-saver", readonly "environmentIcon"?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly "defaultRuntimeMode"?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "addProjectBaseDirectory"?: string, readonly "textGenerationModelSelection"?: { readonly "instanceId"?: string, readonly "model"?: string, readonly "options"?: ReadonlyArray<{ readonly "id": string, readonly "value": string | boolean }> | { readonly [x: string]: unknown } } | null, readonly "sourceControlWritingStyle"?: { readonly "mode"?: "repo_conventions" | "conventional_commits" | "custom", readonly "customInstructions"?: string, readonly "followChangeRequestTemplates"?: boolean }, readonly "sourceControlWriterModelSelection"?: { readonly "provider"?: unknown, readonly "instanceId"?: unknown, readonly "model": unknown, readonly "options"?: unknown } | null, readonly "observability"?: { readonly "otlpTracesUrl"?: string, readonly "otlpMetricsUrl"?: string, readonly "otlpLogsUrl"?: string, readonly "fullTraceUntil"?: number, readonly "fullTraceForMs"?: number }, readonly "providerInstances"?: { readonly [x: string]: { readonly "driver": string, readonly "displayName"?: string, readonly "accentColor"?: string, readonly "environment"?: ReadonlyArray<Objects_97>, readonly "proxyId"?: null | string | { readonly "required": string }, readonly "keepBackgroundServices"?: boolean, readonly "enabled"?: boolean, readonly "localEnabled"?: boolean, readonly "syncSetupRequired"?: boolean, readonly "hiddenModels"?: ReadonlyArray<string>, readonly "modelOrder"?: ReadonlyArray<string>, readonly "defaultModel"?: string, readonly "config"?: unknown, readonly "configSecretRefs"?: { readonly [x: string]: string }, readonly "configRedacted"?: boolean, readonly "configSecretFields"?: ReadonlyArray<string> } }, readonly "dismissedDiscoveredDrivers"?: ReadonlyArray<string>, readonly "proxies"?: { readonly [x: string]: { readonly "displayName"?: string, readonly "protocol": "http" | "https", readonly "host": string, readonly "port": number, readonly "username"?: string, readonly "bypass"?: string, readonly "credentials"?: ReadonlyArray<Objects_97> } }, readonly "defaultProxyId"?: string | null, readonly "plugins"?: { readonly "mcpServers"?: { readonly [x: string]: { readonly "name": string, readonly "transport": { readonly "type": "stdio", readonly "command": string, readonly "args"?: ReadonlyArray<string>, readonly "env"?: { readonly [x: string]: string } } | { readonly "type": "http", readonly "url": string, readonly "headers"?: { readonly [x: string]: string } } | { readonly "type": "sse", readonly "url": string, readonly "headers"?: { readonly [x: string]: string } }, readonly "enabled"?: boolean, readonly "providers"?: Objects_98, readonly "catalogId"?: string, readonly "oauth"?: { readonly "status": "none" | "required" | "authorized" } } }, readonly "skills"?: { readonly [x: string]: { readonly "name": string, readonly "source": { readonly "kind": "inline", readonly "skillMd": string } | { readonly "kind": "builtin", readonly "id": string } | { readonly "kind": "catalog", readonly "catalogId": string, readonly "version": string }, readonly "enabled"?: boolean, readonly "modelInvocable"?: boolean, readonly "userInvocable"?: boolean, readonly "providers"?: Objects_98 } } }, readonly "requireManualPairingForNewDevices"?: boolean, readonly "tunnelForceTcp"?: boolean, readonly "wallpaper"?: { readonly "base": Objects_99, readonly "sidebar": Objects_99 | null, readonly "workspace": Objects_99 | null, readonly "chat": Objects_99 | null } } };
665
- export type MachineSettingsUpdateOutput = Objects_100;
666
- export type MachineSettingsKeybindingsUpsertInput = { readonly "key": string, readonly "command": "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `${"script."}${string}${".run"}`, readonly "when"?: string, readonly "replace"?: { readonly "key": string, readonly "command": "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `${"script."}${string}${".run"}`, readonly "when"?: string } };
667
- export type MachineSettingsKeybindingsUpsertOutput = { readonly "keybindings": Arrays_14, readonly "issues": Arrays_15 };
668
- export type MachineSettingsKeybindingsRemoveInput = { readonly "key": string, readonly "command": "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `${"script."}${string}${".run"}`, readonly "when"?: string };
669
- export type MachineSettingsKeybindingsRemoveOutput = { readonly "keybindings": Arrays_14, readonly "issues": Arrays_15 };
670
- export type MachineSettingsWallpaperAdoptInput = { readonly "attachmentId": string };
671
- export type MachineSettingsWallpaperAdoptOutput = { readonly "wallpaperId": string };
672
- export type MachineSettingsConnectPreferencesUpdateInput = { readonly "publishAgentActivity": boolean };
673
- export type MachineSettingsConnectPreferencesUpdateOutput = { readonly "linked": boolean, readonly "cloudUserId": string | null, readonly "relayUrl": string | null, readonly "relayIssuer": string | null, readonly "managedTunnelActive"?: boolean | undefined, readonly "publishAgentActivity": boolean, readonly "lastReconcileAttempt"?: { readonly "outcome": "ok" | "error", readonly "attemptedAt": SchemaUtc, readonly "message"?: string } | undefined };
264
+ export type MachineSettingsKeybindingsGetOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }>, readonly keybindingsConfigPath: string };
265
+ export type MachineSettingsUpdateInput = { readonly patch: { readonly settingsRevision?: number, readonly enableProviderUpdateChecks?: boolean, readonly enableAgentBrowserAccess?: boolean, readonly browserRetentionBudgetEnabled?: boolean, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation?: boolean, readonly agentThreadDelegationMaxDepth?: number, readonly enableAgentSelfDevelopment?: boolean, readonly machineTaskConfirmation?: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly backgroundActivity?: { readonly schemaVersion?: 1, readonly profile?: "balanced" | "performance" | "battery-saver" | "custom", readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides?: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly npmRegistry?: string, readonly pluginUpdateCheck?: boolean, readonly backgroundActivityProfile?: "balanced" | "performance" | "battery-saver", readonly environmentIcon?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory?: string, readonly textGenerationModelSelection?: { readonly instanceId?: string, readonly model?: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly sourceControlWritingStyle?: { readonly mode?: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions?: string, readonly followChangeRequestTemplates?: boolean }, readonly sourceControlWriterModelSelection?: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown } | null, readonly observability?: { readonly otlpTracesUrl?: string, readonly otlpMetricsUrl?: string, readonly otlpLogsUrl?: string, readonly fullTraceUntil?: number, readonly fullTraceForMs?: number }, readonly providerInstances?: { readonly [x: string]: { readonly driver: string, readonly displayName?: string, readonly accentColor?: string, readonly environment?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }>, readonly proxyId?: null | string | { readonly required: string }, readonly keepBackgroundServices?: boolean, readonly enabled?: boolean, readonly localEnabled?: boolean, readonly syncSetupRequired?: boolean, readonly hiddenModels?: ReadonlyArray<string>, readonly modelOrder?: ReadonlyArray<string>, readonly defaultModel?: string, readonly config?: unknown, readonly configSecretRefs?: { readonly [x: string]: string }, readonly configRedacted?: boolean, readonly configSecretFields?: ReadonlyArray<string> } }, readonly dismissedDiscoveredDrivers?: ReadonlyArray<string>, readonly proxies?: { readonly [x: string]: { readonly displayName?: string, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly username?: string, readonly bypass?: string, readonly credentials?: ReadonlyArray<{ readonly name: string, readonly value?: string, readonly sensitive?: boolean, readonly valueRedacted?: boolean }> } }, readonly defaultProxyId?: string | null, readonly plugins?: { readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string>, readonly env?: { readonly [x: string]: string } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string, readonly oauth?: { readonly status: "none" | "required" | "authorized" } } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean, readonly modelInvocable?: boolean, readonly userInvocable?: boolean, readonly providers?: { readonly [x: string]: boolean } } } }, readonly requireManualPairingForNewDevices?: boolean, readonly wallpaper?: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null } } };
266
+ export type MachineSettingsUpdateOutput = { readonly enableProviderUpdateChecks: boolean, readonly enableAgentBrowserAccess: boolean, readonly browserRetentionBudgetEnabled: boolean, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation: boolean, readonly enableAgentSelfDevelopment: boolean, readonly machineTaskConfirmation: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly enableHeapSnapshot: boolean, readonly agentThreadDelegationMaxDepth: number, readonly pluginUpdateCheck: boolean, readonly backgroundActivityProfile: "balanced" | "performance" | "battery-saver", readonly environmentIcon: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory: string, readonly textGenerationModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly sourceControlWritingStyle: { readonly mode: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions: string, readonly followChangeRequestTemplates: boolean }, readonly sourceControlWriterModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly dismissedDiscoveredDrivers: ReadonlyArray<string>, readonly defaultProxyId: string | null, readonly wallpaper: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null }, readonly requireManualPairingForNewDevices: boolean, readonly automaticGitFetchInterval: number, readonly providerHealthRefreshInterval: number, readonly backgroundActivity: { readonly schemaVersion: 1, readonly profile: "balanced" | "performance" | "battery-saver" | "custom", readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly npmRegistry: string, readonly proxies: { readonly [x: string]: { readonly displayName?: string | undefined, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly bypass?: string } }, readonly plugins: { readonly mcpServers: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly argCount: number, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled: boolean, readonly providers: { readonly [x: string]: boolean }, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined } }, readonly skills: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline" } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable: boolean, readonly userInvocable: boolean, readonly providers: { readonly [x: string]: boolean } } } }, readonly observability: { readonly otlpTracesUrl: string, readonly otlpMetricsUrl: string, readonly otlpLogsUrl: string, readonly fullTraceUntil?: number } };
267
+ export type MachineSettingsKeybindingsUpsertInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string, readonly replace?: { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string } };
268
+ export type MachineSettingsKeybindingsUpsertOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
269
+ export type MachineSettingsKeybindingsRemoveInput = { readonly key: string, readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly when?: string };
270
+ export type MachineSettingsKeybindingsRemoveOutput = { readonly keybindings: ReadonlyArray<{ readonly command: "sidebar.toggle" | "navigation.back" | "navigation.forward" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "rightPanel.toggleMaximized" | "rightPanel.close" | "diff.toggle" | "browser.toggle" | "browser.refresh" | "browser.focusUrl" | "browser.zoomIn" | "browser.zoomOut" | "browser.resetZoom" | "commandPalette.toggle" | "filePicker.toggle" | "projectSearch.toggle" | "theme.select" | "appearance.cycle" | "threadSearch.focus" | "themeEditor.toggle" | "composer.stash" | "chat.new" | "chat.newLocal" | "chat.toggleTrajectory" | "team.view.previous" | "team.view.next" | "approval.approve" | "approval.decline" | "approval.cancel" | "modelPicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "runtimeMode.cycle" | "runtimeMode.cycleBack" | "thread.previous" | "thread.next" | "thread.group.previous" | "thread.group.next" | "thread.copyReference" | "thread.settle" | "thread.pin" | "thread.undo" | "thread.interrupt" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | `script.${string}.run`, readonly shortcut: { readonly key: string, readonly metaKey: boolean, readonly ctrlKey: boolean, readonly shiftKey: boolean, readonly altKey: boolean, readonly modKey: boolean }, readonly whenAst?: Union_ | undefined }>, readonly issues: ReadonlyArray<{ readonly kind: "keybindings.malformed-config", readonly message: string } | { readonly kind: "keybindings.invalid-entry", readonly message: string, readonly index: number }> };
271
+ export type MachineSettingsWallpaperAdoptInput = { readonly attachmentId: string };
272
+ export type MachineSettingsWallpaperAdoptOutput = { readonly wallpaperId: string };
273
+ export type MachineSettingsConnectPreferencesUpdateInput = { readonly publishAgentActivity: boolean };
274
+ export type MachineSettingsConnectPreferencesUpdateOutput = { readonly linked: boolean, readonly cloudUserId: string | null, readonly relayUrl: string | null, readonly relayIssuer: string | null, readonly managedTunnelActive?: boolean | undefined, readonly publishAgentActivity: boolean, readonly lastReconcileAttempt?: { readonly outcome: "ok" | "error", readonly attemptedAt: SchemaUtc, readonly message?: string } | undefined };
674
275
  export type MachineSettingsGetInput = { };
675
- export type MachineSettingsGetOutput = Objects_100;
276
+ export type MachineSettingsGetOutput = { readonly enableProviderUpdateChecks: boolean, readonly enableAgentBrowserAccess: boolean, readonly browserRetentionBudgetEnabled: boolean, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation: boolean, readonly enableAgentSelfDevelopment: boolean, readonly machineTaskConfirmation: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> }, readonly enableHeapSnapshot: boolean, readonly agentThreadDelegationMaxDepth: number, readonly pluginUpdateCheck: boolean, readonly backgroundActivityProfile: "balanced" | "performance" | "battery-saver", readonly environmentIcon: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | null, readonly defaultRuntimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly addProjectBaseDirectory: string, readonly textGenerationModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly sourceControlWritingStyle: { readonly mode: "repo_conventions" | "conventional_commits" | "custom", readonly customInstructions: string, readonly followChangeRequestTemplates: boolean }, readonly sourceControlWriterModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | null, readonly dismissedDiscoveredDrivers: ReadonlyArray<string>, readonly defaultProxyId: string | null, readonly wallpaper: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null }, readonly requireManualPairingForNewDevices: boolean, readonly automaticGitFetchInterval: number, readonly providerHealthRefreshInterval: number, readonly backgroundActivity: { readonly schemaVersion: 1, readonly profile: "balanced" | "performance" | "battery-saver" | "custom", readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly npmRegistry: string, readonly proxies: { readonly [x: string]: { readonly displayName?: string | undefined, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly bypass?: string } }, readonly plugins: { readonly mcpServers: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly argCount: number, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled: boolean, readonly providers: { readonly [x: string]: boolean }, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined } }, readonly skills: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline" } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable: boolean, readonly userInvocable: boolean, readonly providers: { readonly [x: string]: boolean } } } }, readonly observability: { readonly otlpTracesUrl: string, readonly otlpMetricsUrl: string, readonly otlpLogsUrl: string, readonly fullTraceUntil?: number } };
676
277
  export type MachineSettingsConfigGetInput = { };
677
- export type MachineSettingsConfigGetOutput = { readonly "pluginApiVersionRange"?: PluginApiVersionRange, readonly "environment": { readonly "environmentId": string, readonly "label": string, readonly "platform": { readonly "os": "darwin" | "linux" | "windows" | "unknown", readonly "arch": "arm64" | "x64" | "other", readonly "machine"?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, readonly "serverVersion": string, readonly "wireProtocolVersion"?: number, readonly "minClientWireProtocolVersion"?: number, readonly "capabilities": { readonly "threadDirectoryIds"?: boolean, readonly "threadMembers"?: boolean, readonly "providerMaintenanceCancel"?: boolean, readonly "repositoryIdentity": boolean, readonly "connectionProbe"?: boolean, readonly "reviewDiffFiles"?: boolean, readonly "worktreeProbePaths"?: boolean, readonly "attachmentUploads"?: boolean, readonly "questionAttachments"?: boolean, readonly "threadSettlement"?: boolean, readonly "threadSnooze"?: boolean, readonly "scheduledWakeRepeat"?: boolean, readonly "threadPinning"?: boolean, readonly "threadPinReorder"?: boolean, readonly "manualOrdering"?: boolean, readonly "projectCopies"?: boolean, readonly "projectArchive"?: boolean, readonly "projectCloneInBackground"?: boolean, readonly "projectMultiFolder"?: boolean, readonly "workLines"?: boolean, readonly "workBoard"?: boolean, readonly "workParents"?: boolean, readonly "projectConfig"?: boolean, readonly "groupMessages"?: boolean, readonly "machineTasks"?: boolean, readonly "machineLog"?: boolean, readonly "tolerantMachineActions"?: boolean, readonly "machineAdmissionIdentityCheck"?: boolean, readonly "projectMachineExclusion"?: boolean, readonly "threadTitleRegeneration"?: boolean, readonly "threadRestart"?: boolean, readonly "threadPullRequestLinking"?: boolean, readonly "environmentIcon"?: boolean, readonly "serverSelfUpdate"?: "boot-service" | "respawn" | "desktop-managed", readonly "serverSelfUpdateProgress"?: boolean, readonly "downloadBaseUrl"?: string, readonly "agentActivityPublishing"?: boolean, readonly "noiseIk"?: boolean, readonly "browserArtifactDelivery"?: boolean, readonly "browserPageOperations"?: boolean, readonly "browserZoomOperations"?: boolean, readonly "browserSiteDataOperations"?: boolean, readonly "browserDevtoolsOperations"?: boolean, readonly "browserRuntime"?: boolean, readonly "pluginNotifications"?: boolean, readonly "pluginSignIn"?: boolean, readonly "pluginSlashCommands"?: boolean, readonly "pluginPurge"?: boolean, readonly "pluginUpdateAdvisories"?: boolean }, readonly "noiseStaticPublicKey"?: string }, readonly "auth": { readonly "policy": "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth", readonly "bootstrapMethods": Arrays_18, readonly "sessionMethods": Arrays_19, readonly "sessionCookieName": string }, readonly "cwd": string, readonly "observability": { readonly "logsDirectoryPath": string, readonly "localTracingEnabled": boolean, readonly "otlpTracesUrl"?: string, readonly "otlpTracesEnabled": boolean, readonly "otlpMetricsUrl"?: string, readonly "otlpMetricsEnabled": boolean, readonly "otlpLogsUrl"?: string, readonly "otlpLogsEnabled": boolean, readonly "localTraceFullForced"?: boolean }, readonly "runtimeMaintenanceRoot"?: string };
278
+ export type MachineSettingsConfigGetOutput = { readonly pluginApiVersionRange?: PluginApiVersionRange, readonly environment: { readonly environmentId: string, readonly label: string, readonly platform: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: "server" | "cloud" | "linux" | "desktop" | "laptop" | "mac-mini" | "mac-studio" | undefined }, readonly serverVersion: string, readonly wireProtocolVersion?: number, readonly minClientWireProtocolVersion?: number, readonly capabilities: { readonly threadDirectoryIds?: boolean, readonly threadMembers?: boolean, readonly providerMaintenanceCancel?: boolean, readonly repositoryIdentity: boolean, readonly connectionProbe?: boolean, readonly reviewDiffFiles?: boolean, readonly worktreeProbePaths?: boolean, readonly attachmentUploads?: boolean, readonly questionAttachments?: boolean, readonly threadSettlement?: boolean, readonly threadSnooze?: boolean, readonly scheduledWakeRepeat?: boolean, readonly threadPinning?: boolean, readonly threadPinReorder?: boolean, readonly manualOrdering?: boolean, readonly projectCopies?: boolean, readonly projectArchive?: boolean, readonly projectCloneInBackground?: boolean, readonly projectMultiFolder?: boolean, readonly workLines?: boolean, readonly workBoard?: boolean, readonly workParents?: boolean, readonly projectConfig?: boolean, readonly groupMessages?: boolean, readonly machineTasks?: boolean, readonly machineLog?: boolean, readonly tolerantMachineActions?: boolean, readonly machineAdmissionIdentityCheck?: boolean, readonly projectMachineExclusion?: boolean, readonly threadTitleRegeneration?: boolean, readonly threadRestart?: boolean, readonly liveCommandOutput?: boolean, readonly threadPullRequestLinking?: boolean, readonly environmentIcon?: boolean, readonly serverSelfUpdate?: "boot-service" | "respawn" | "desktop-managed", readonly serverSelfUpdateProgress?: boolean, readonly downloadBaseUrl?: string, readonly agentActivityPublishing?: boolean, readonly noiseIk?: boolean, readonly browserArtifactDelivery?: boolean, readonly browserPageOperations?: boolean, readonly browserZoomOperations?: boolean, readonly browserSiteDataOperations?: boolean, readonly browserDevtoolsOperations?: boolean, readonly browserRuntime?: boolean, readonly pluginNotifications?: boolean, readonly pluginSignIn?: boolean, readonly pluginSlashCommands?: boolean, readonly pluginPurge?: boolean, readonly pluginUpdateAdvisories?: boolean }, readonly noiseStaticPublicKey?: string, readonly environmentPublicKey?: string }, readonly auth: { readonly policy: "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth", readonly bootstrapMethods: ReadonlyArray<"desktop-bootstrap" | "one-time-token">, readonly sessionMethods: ReadonlyArray<"browser-session-cookie" | "bearer-access-token" | "dpop-access-token">, readonly sessionCookieName: string }, readonly cwd: string, readonly observability: { readonly logsDirectoryPath: string, readonly localTracingEnabled: boolean, readonly otlpTracesUrl?: string, readonly otlpTracesEnabled: boolean, readonly otlpMetricsUrl?: string, readonly otlpMetricsEnabled: boolean, readonly otlpLogsUrl?: string, readonly otlpLogsEnabled: boolean, readonly localTraceFullForced?: boolean }, readonly runtimeMaintenanceRoot?: string };
678
279
  export type MachineSettingsNpmRegistryGetInput = { };
679
- export type MachineSettingsNpmRegistryGetOutput = { readonly "registry": string, readonly "source": "setting" | "npm" | "default" };
280
+ export type MachineSettingsNpmRegistryGetOutput = { readonly registry: string, readonly source: "setting" | "npm" | "default" };
680
281
  export type MachineSettingsPresetsListInput = { };
681
- export type MachineSettingsPresetsListOutput = { readonly "presets": ReadonlyArray<{ readonly "presetId": string, readonly "displayName": string, readonly "description"?: string | undefined, readonly "mcpServers"?: ReadonlyArray<string> | undefined, readonly "skills"?: ReadonlyArray<string> | undefined, readonly "toolkits"?: ReadonlyArray<"browser" | "orchestration" | "team" | "selfdev" | "board" | "memory"> | undefined, readonly "promptPrefix"?: string | undefined }> };
282
+ export type MachineSettingsPresetsListOutput = { readonly presets: ReadonlyArray<{ readonly presetId: string, readonly displayName: string, readonly description?: string | undefined, readonly mcpServers?: ReadonlyArray<string> | undefined, readonly skills?: ReadonlyArray<string> | undefined, readonly toolkits?: ReadonlyArray<"browser" | "orchestration" | "team" | "selfdev" | "board" | "memory"> | undefined, readonly promptPrefix?: string | undefined }> };
682
283
  export type MachineSettingsEndpointsListInput = { };
683
- export type MachineSettingsEndpointsListOutput = { readonly "items": ReadonlyArray<{ readonly "httpBaseUrl": string, readonly "reachability": "lan" | "private-network" | "tailscale" }>, readonly "publicBaseUrl"?: string | undefined, readonly "loopbackBaseUrl"?: string | undefined };
284
+ export type MachineSettingsEndpointsListOutput = { readonly items: ReadonlyArray<{ readonly httpBaseUrl: string, readonly reachability: "lan" | "private-network" | "tailscale" }>, readonly publicBaseUrl?: string | undefined, readonly loopbackBaseUrl?: string | undefined };
684
285
  export type MachineSettingsProxiesListInput = { };
685
- export type MachineSettingsProxiesListOutput = ReadonlyArray<{ readonly "id": string, readonly "displayName"?: string | undefined, readonly "protocol": "http" | "https", readonly "host": string, readonly "port": number, readonly "bypass"?: string, readonly "isDefault": boolean }>;
286
+ export type MachineSettingsProxiesListOutput = ReadonlyArray<{ readonly id: string, readonly displayName?: string | undefined, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly bypass?: string, readonly isDefault: boolean }>;
686
287
  export type MachineSettingsSyncGetInput = { };
687
- export type MachineSettingsSyncGetOutput = Objects_109;
288
+ export type MachineSettingsSyncGetOutput = { readonly accountId?: string, readonly revision: number, readonly peers: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly state: "synced" | "syncing" | "unreachable" | "update-required", readonly syncedAt?: string, readonly reason?: string }>, readonly conflicts: ReadonlyArray<string>, readonly excluded: ReadonlyArray<string>, readonly needsSetup: ReadonlyArray<string> };
688
289
  export type MachineSettingsSyncSubscribeInput = { };
689
- export type MachineSettingsSyncSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Objects_109 };
690
- export type MachineSettingsSyncExcludeInput = { readonly "instanceId": string, readonly "excluded": boolean };
691
- export type MachineSettingsSyncExcludeOutput = Objects_109;
290
+ export type MachineSettingsSyncSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly accountId?: string, readonly revision: number, readonly peers: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly state: "synced" | "syncing" | "unreachable" | "update-required", readonly syncedAt?: string, readonly reason?: string }>, readonly conflicts: ReadonlyArray<string>, readonly excluded: ReadonlyArray<string>, readonly needsSetup: ReadonlyArray<string> } };
291
+ export type MachineSettingsSyncExcludeInput = { readonly instanceId: string, readonly excluded: boolean };
292
+ export type MachineSettingsSyncExcludeOutput = { readonly accountId?: string, readonly revision: number, readonly peers: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly state: "synced" | "syncing" | "unreachable" | "update-required", readonly syncedAt?: string, readonly reason?: string }>, readonly conflicts: ReadonlyArray<string>, readonly excluded: ReadonlyArray<string>, readonly needsSetup: ReadonlyArray<string> };
692
293
  export type MachineSettingsRuntimeHealthGetInput = { };
693
- export type MachineSettingsRuntimeHealthGetOutput = Objects_110;
294
+ export type MachineSettingsRuntimeHealthGetOutput = { readonly revision: string, readonly status: "healthy" | "stopped" | "conflict" | "unknown", readonly stateDir: string, readonly runtimeRoot: string, readonly currentVersion: string | null, readonly instances: ReadonlyArray<{ readonly pid: number, readonly startToken: string, readonly launcher: { readonly pid: number, readonly startToken: string } | null, readonly version: string | null, readonly port: number | null, readonly stateDir: string, readonly managed: boolean, readonly ready: boolean, readonly supportsDrain: boolean, readonly activity: "idle" | "busy" | "unknown", readonly tasks: ReadonlyArray<{ readonly threadId: string, readonly turnId: string | null }> }>, readonly repairSupported: boolean, readonly operation: { readonly id: string, readonly policy: "when-idle" | "now", readonly phase: "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly targetVersion: string, readonly startedAt: string, readonly updatedAt: string, readonly reason: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | null, readonly detail?: string, readonly backupPath: string | null } | null, readonly windowsProcessTreeProtection?: { readonly status: "active" } | { readonly status: "no-helper" } | { readonly status: "assign-failed", readonly errorCode: number } | { readonly status: "helper-failed" } | undefined, readonly windowsProcessTreeProtectionExemptions?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }>, readonly windowsProcessTreeProtectionExplicitBreakaways?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }> };
694
295
  export type MachineSettingsRuntimeInventoryGetInput = { };
695
- export type MachineSettingsRuntimeInventoryGetOutput = Objects_112;
696
- export type MachineSettingsLogRecentInput = { readonly "minutes"?: number, readonly "levels"?: ReadonlyArray<"WARN" | "ERROR" | "FATAL">, readonly "homeEnvironmentId"?: string, readonly "limit"?: number };
697
- export type MachineSettingsLogRecentOutput = { readonly "enabled": boolean, readonly "records": ReadonlyArray<MachineLogRecord>, readonly "matched": number, readonly "olderRecordsNotScanned"?: boolean, readonly "rotatedDuringScan"?: boolean, readonly "unreadableFiles"?: number };
698
- export type MachineSettingsProxiesTestInput = { readonly "config": { readonly "displayName"?: string, readonly "protocol": "http" | "https", readonly "host": string, readonly "port": number, readonly "username"?: string, readonly "bypass"?: string, readonly "credentials"?: ReadonlyArray<{ readonly "name": string, readonly "value": string, readonly "sensitive": boolean, readonly "valueRedacted"?: boolean }> }, readonly "proxyId"?: string };
699
- export type MachineSettingsProxiesTestOutput = { readonly "latencyMs": number, readonly "statusCode": number | null };
700
- export type MachineSettingsRuntimeControlInput = { readonly "type": "inspect" } | { readonly "type": "repair", readonly "revision": string, readonly "policy": "when-idle" | "now" } | { readonly "type": "cancel", readonly "operationId": string };
701
- export type MachineSettingsRuntimeControlOutput = { readonly "health": Objects_110, readonly "refusal": "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | null, readonly "detail"?: string };
702
- export type MachineSettingsRuntimeVersionsRemoveInput = { readonly "version": string };
703
- export type MachineSettingsRuntimeVersionsRemoveOutput = { readonly "outcome": "removed" | "refused-current" | "refused-in-use" | "not-found" | "invalid-name" | "failed", readonly "message"?: string, readonly "refusal"?: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | undefined, readonly "inspection": Objects_112 };
704
- export type MachineSettingsRuntimeBackupsRemoveInput = { readonly "id": string };
705
- export type MachineSettingsRuntimeBackupsRemoveOutput = { readonly "outcome": "removed" | "refused-in-use" | "not-found" | "invalid-name" | "failed", readonly "message"?: string, readonly "refusal"?: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | undefined, readonly "inspection": Objects_112 };
706
- export type MachineSettingsRuntimeUpgradeInput = { readonly "targetVersion": string };
707
- export type MachineSettingsRuntimeUpgradeOutput = { readonly "targetVersion": string, readonly "method": "boot-service" | "respawn", readonly "updateId"?: string };
708
- export type ProvidersNativeSessionsScanInput = { readonly "projectId": string, readonly "directory"?: string };
709
- export type ProvidersNativeSessionsScanOutput = { readonly "sources": ReadonlyArray<{ readonly "instanceId": string, readonly "provider": string, readonly "candidates": ReadonlyArray<{ readonly "provider": string, readonly "instanceId": string, readonly "nativeSessionId": string, readonly "title": string | null, readonly "preview": string | null, readonly "model": string | null, readonly "turnCount": number, readonly "updatedAt": number, readonly "cwd": string, readonly "availability": "importable" | "alreadyImported", readonly "openElsewhere": boolean, readonly "importedThreadId"?: string | undefined }>, readonly "unavailableReason": string | null }>, readonly "directory": string };
710
- export type ProvidersNativeSessionsImportInput = { readonly "projectId": string, readonly "instanceId": string, readonly "provider": string, readonly "nativeSessionId": string, readonly "cwd": string, readonly "threadId": string };
711
- export type ProvidersNativeSessionsImportOutput = { readonly "_tag": "snapshot", readonly "value": { readonly "threadId": string, readonly "kind": "import_started", readonly "phases": ReadonlyArray<"read" | "create" | "link"> } | { readonly "threadId": string, readonly "kind": "phase_started", readonly "phase": "read" | "create" | "link" } | { readonly "threadId": string, readonly "kind": "session_read", readonly "availableMessages": number, readonly "restoredMessages": number, readonly "availableActivities"?: number | undefined, readonly "restoredActivities"?: number | undefined } | { readonly "threadId": string, readonly "kind": "import_finished", readonly "restoredMessages": number, readonly "restoredActivities"?: number | undefined } | { readonly "threadId": string, readonly "kind": "import_failed", readonly "phase": "read" | "create" | "link", readonly "message": string, readonly "threadCreated": boolean } };
712
- export type ProvidersNativeSessionsSyncInput = { readonly "threadId": string };
713
- export type ProvidersNativeSessionsSyncOutput = { readonly "status": "not-imported" | "unchanged" | "synced" | "skipped-active" | "failed", readonly "appended": number };
296
+ export type MachineSettingsRuntimeInventoryGetOutput = { readonly currentVersion: string | null, readonly runtimeRoot: string, readonly versions: ReadonlyArray<{ readonly name: string, readonly bytes: number, readonly isCurrent: boolean, readonly isLegacyLayout: boolean, readonly inUse: boolean, readonly holders?: ReadonlyArray<{ readonly pid: number, readonly executable?: string }> }>, readonly running: { readonly pid: number, readonly port: number, readonly version: string | null } | null, readonly backups?: ReadonlyArray<{ readonly id: string, readonly bytes: number, readonly createdAt: string | null, readonly targetVersion: string | null, readonly previousVersion: string | null, readonly isEmpty: boolean, readonly inUse: boolean }> };
297
+ export type MachineSettingsLogRecentInput = { readonly minutes?: number, readonly levels?: ReadonlyArray<"WARN" | "ERROR" | "FATAL">, readonly homeEnvironmentId?: string, readonly limit?: number };
298
+ export type MachineSettingsLogRecentOutput = { readonly enabled: boolean, readonly records: ReadonlyArray<MachineLogRecord>, readonly matched: number, readonly olderRecordsNotScanned?: boolean, readonly rotatedDuringScan?: boolean, readonly unreadableFiles?: number };
299
+ export type MachineSettingsProxiesTestInput = { readonly config: { readonly displayName?: string, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly username?: string, readonly bypass?: string, readonly credentials?: ReadonlyArray<{ readonly name: string, readonly value: string, readonly sensitive: boolean, readonly valueRedacted?: boolean }> }, readonly proxyId?: string };
300
+ export type MachineSettingsProxiesTestOutput = { readonly latencyMs: number, readonly statusCode: number | null };
301
+ export type MachineSettingsRuntimeControlInput = { readonly type: "inspect" } | { readonly type: "repair", readonly revision: string, readonly policy: "when-idle" | "now" } | { readonly type: "cancel", readonly operationId: string };
302
+ export type MachineSettingsRuntimeControlOutput = { readonly health: { readonly revision: string, readonly status: "healthy" | "stopped" | "conflict" | "unknown", readonly stateDir: string, readonly runtimeRoot: string, readonly currentVersion: string | null, readonly instances: ReadonlyArray<{ readonly pid: number, readonly startToken: string, readonly launcher: { readonly pid: number, readonly startToken: string } | null, readonly version: string | null, readonly port: number | null, readonly stateDir: string, readonly managed: boolean, readonly ready: boolean, readonly supportsDrain: boolean, readonly activity: "idle" | "busy" | "unknown", readonly tasks: ReadonlyArray<{ readonly threadId: string, readonly turnId: string | null }> }>, readonly repairSupported: boolean, readonly operation: { readonly id: string, readonly policy: "when-idle" | "now", readonly phase: "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly targetVersion: string, readonly startedAt: string, readonly updatedAt: string, readonly reason: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | null, readonly detail?: string, readonly backupPath: string | null } | null, readonly windowsProcessTreeProtection?: { readonly status: "active" } | { readonly status: "no-helper" } | { readonly status: "assign-failed", readonly errorCode: number } | { readonly status: "helper-failed" } | undefined, readonly windowsProcessTreeProtectionExemptions?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }>, readonly windowsProcessTreeProtectionExplicitBreakaways?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }> }, readonly refusal: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | null, readonly detail?: string };
303
+ export type MachineSettingsRuntimeVersionsRemoveInput = { readonly version: string };
304
+ export type MachineSettingsRuntimeVersionsRemoveOutput = { readonly outcome: "removed" | "refused-current" | "refused-in-use" | "not-found" | "invalid-name" | "failed", readonly message?: string, readonly refusal?: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | undefined, readonly inspection: { readonly currentVersion: string | null, readonly runtimeRoot: string, readonly versions: ReadonlyArray<{ readonly name: string, readonly bytes: number, readonly isCurrent: boolean, readonly isLegacyLayout: boolean, readonly inUse: boolean, readonly holders?: ReadonlyArray<{ readonly pid: number, readonly executable?: string }> }>, readonly running: { readonly pid: number, readonly port: number, readonly version: string | null } | null, readonly backups?: ReadonlyArray<{ readonly id: string, readonly bytes: number, readonly createdAt: string | null, readonly targetVersion: string | null, readonly previousVersion: string | null, readonly isEmpty: boolean, readonly inUse: boolean }> } };
305
+ export type MachineSettingsRuntimeBackupsRemoveInput = { readonly id: string };
306
+ export type MachineSettingsRuntimeBackupsRemoveOutput = { readonly outcome: "removed" | "refused-in-use" | "not-found" | "invalid-name" | "failed", readonly message?: string, readonly refusal?: "activity-unknown" | "identity-changed" | "environment-identity-changed" | "inspection-unavailable" | "instance-unmanaged" | "maintenance-in-progress" | "operation-interrupted" | "shutdown-failed" | "startup-failed" | "target-unavailable" | "port-unavailable" | "snapshot-changed" | "internal-error" | undefined, readonly inspection: { readonly currentVersion: string | null, readonly runtimeRoot: string, readonly versions: ReadonlyArray<{ readonly name: string, readonly bytes: number, readonly isCurrent: boolean, readonly isLegacyLayout: boolean, readonly inUse: boolean, readonly holders?: ReadonlyArray<{ readonly pid: number, readonly executable?: string }> }>, readonly running: { readonly pid: number, readonly port: number, readonly version: string | null } | null, readonly backups?: ReadonlyArray<{ readonly id: string, readonly bytes: number, readonly createdAt: string | null, readonly targetVersion: string | null, readonly previousVersion: string | null, readonly isEmpty: boolean, readonly inUse: boolean }> } };
307
+ export type MachineSettingsRuntimeUpgradeInput = { readonly targetVersion: string };
308
+ export type MachineSettingsRuntimeUpgradeOutput = { readonly targetVersion: string, readonly method: "boot-service" | "respawn", readonly updateId?: string };
309
+ export type ProvidersNativeSessionsScanInput = { readonly projectId: string, readonly directory?: string };
310
+ export type ProvidersNativeSessionsScanOutput = { readonly sources: ReadonlyArray<{ readonly instanceId: string, readonly provider: string, readonly candidates: ReadonlyArray<{ readonly provider: string, readonly instanceId: string, readonly nativeSessionId: string, readonly title: string | null, readonly preview: string | null, readonly model: string | null, readonly turnCount: number, readonly updatedAt: number, readonly cwd: string, readonly availability: "importable" | "alreadyImported", readonly openElsewhere: boolean, readonly importedThreadId?: string | undefined }>, readonly unavailableReason: string | null }>, readonly directory: string };
311
+ export type ProvidersNativeSessionsImportInput = { readonly projectId: string, readonly instanceId: string, readonly provider: string, readonly nativeSessionId: string, readonly cwd: string, readonly threadId: string };
312
+ export type ProvidersNativeSessionsImportOutput = { readonly _tag: "snapshot", readonly value: { readonly threadId: string, readonly kind: "import_started", readonly phases: ReadonlyArray<"read" | "create" | "link"> } | { readonly threadId: string, readonly kind: "phase_started", readonly phase: "read" | "create" | "link" } | { readonly threadId: string, readonly kind: "session_read", readonly availableMessages: number, readonly restoredMessages: number, readonly availableActivities?: number | undefined, readonly restoredActivities?: number | undefined } | { readonly threadId: string, readonly kind: "import_finished", readonly restoredMessages: number, readonly restoredActivities?: number | undefined } | { readonly threadId: string, readonly kind: "import_failed", readonly phase: "read" | "create" | "link", readonly message: string, readonly threadCreated: boolean } };
313
+ export type ProvidersNativeSessionsSyncInput = { readonly threadId: string };
314
+ export type ProvidersNativeSessionsSyncOutput = { readonly status: "not-imported" | "unchanged" | "synced" | "skipped-active" | "failed", readonly appended: number };
714
315
  export type ProvidersInstancesListInput = { };
715
- export type ProvidersInstancesListOutput = ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName": string | null, readonly "enabled": boolean, readonly "homePath": string | null, readonly "transcriptDir": string | null, readonly "configDirPath": string | null, readonly "environmentKeys": ReadonlyArray<string>, readonly "driverConfig": { readonly [x: string]: unknown }, readonly "launchArgs": string, readonly "keepBackgroundServices"?: boolean, readonly "apiEndpoint": string | null, readonly "models"?: ReadonlyArray<{ readonly "slug": string, readonly "name": string, readonly "isDefault": boolean }> }>;
716
- export type ProvidersSelectionResolveInput = { readonly "base": Objects_113 | null, readonly "instanceId"?: string, readonly "model"?: string, readonly "options"?: Arrays_23 | Objects_114, readonly "purpose"?: "create" | "dispatch-existing" };
717
- export type ProvidersSelectionResolveOutput = { readonly "modelSelection": Objects_115, readonly "hints"?: ReadonlyArray<{ readonly "kind": "option-unsupported", readonly "model": string | null, readonly "optionId": string, readonly "stored": string | boolean, readonly "effective"?: string | boolean } | { readonly "kind": "effort-moved", readonly "model": string | null, readonly "optionId": string, readonly "from": string, readonly "to": string } | { readonly "kind": "model-replaced", readonly "from": string, readonly "to": string | null }> };
718
- export type ProvidersSessionsListInput = { readonly "threadId"?: string, readonly "limit"?: number, readonly "cursor"?: string };
719
- export type ProvidersSessionsListOutput = { readonly "sessions": ReadonlyArray<{ readonly "threadId": string, readonly "driver": string, readonly "instanceId": string, readonly "resumeCursor": unknown | null, readonly "status": "starting" | "running" | "stopped" | "error" | null, readonly "lastSeenAt": string }>, readonly "nextCursor": string | null };
720
- export type ProvidersSessionsSetResumeCursorInput = { readonly "instanceId": string, readonly "threadId": string, readonly "cursor": unknown };
316
+ export type ProvidersInstancesListOutput = ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string | null, readonly enabled: boolean, readonly homePath: string | null, readonly transcriptDir: string | null, readonly configDirPath: string | null, readonly environmentKeys: ReadonlyArray<string>, readonly driverConfig: { readonly [x: string]: unknown }, readonly launchArgs: string, readonly keepBackgroundServices?: boolean, readonly apiEndpoint: string | null, readonly models?: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly isDefault: boolean }> }>;
317
+ export type ProvidersSelectionResolveInput = { readonly base: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly instanceId?: string, readonly model?: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown }, readonly purpose?: "create" | "dispatch-existing" };
318
+ export type ProvidersSelectionResolveOutput = { readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly hints?: ReadonlyArray<{ readonly kind: "option-unsupported", readonly model: string | null, readonly optionId: string, readonly stored: string | boolean, readonly effective?: string | boolean } | { readonly kind: "effort-moved", readonly model: string | null, readonly optionId: string, readonly from: string, readonly to: string } | { readonly kind: "model-replaced", readonly from: string, readonly to: string | null }> };
319
+ export type ProvidersSessionsListInput = { readonly threadId?: string, readonly limit?: number, readonly cursor?: string };
320
+ export type ProvidersSessionsListOutput = { readonly sessions: ReadonlyArray<{ readonly threadId: string, readonly driver: string, readonly instanceId: string, readonly resumeCursor: unknown | null, readonly status: "starting" | "running" | "stopped" | "error" | null, readonly lastSeenAt: string }>, readonly nextCursor: string | null };
321
+ export type ProvidersSessionsSetResumeCursorInput = { readonly instanceId: string, readonly threadId: string, readonly cursor: unknown };
721
322
  export type ProvidersSessionsSetResumeCursorOutput = { };
722
323
  export type ProvidersExecutorsListInput = { };
723
- export type ProvidersExecutorsListOutput = { readonly "entries": ReadonlyArray<{ readonly "pluginId": string, readonly "entryId": string, readonly "loadedAt": string, readonly "card": { readonly "driverKind": string, readonly "displayName": string, readonly "iconUrl": string, readonly "commandName": string, readonly "launchArgs": string, readonly "homeEnvVar": string, readonly "homeLayout"?: { readonly "accountConfigKey": string, readonly "transcriptSubdir": string, readonly "accountEnvVar"?: string | undefined } | undefined, readonly "accountDirectory"?: { readonly "configKeys": readonly [string, ...Array<string>], readonly "defaultDirectory": string, readonly "brandAliases"?: ReadonlyArray<string>, readonly "holdsThreads"?: boolean } | undefined, readonly "resumeCommand"?: { readonly "cursorKeys": readonly [string, ...Array<string>], readonly "command": string } | undefined, readonly "repositoryInstructionsFile"?: string | undefined, readonly "signInNotNeededWhen"?: { readonly "configKey": string, readonly "equals": string } | undefined, readonly "mcpToolNameStyle"?: "server_tool" | undefined, readonly "environment": ReadonlyArray<{ readonly "name": string, readonly "sensitive": boolean }>, readonly "install": { readonly "kind": "vendorScript", readonly "posixCommand": string, readonly "windowsCommand": string, readonly "installedPathSegment": string } | { readonly "kind": "npm" } | { readonly "kind": "downloadPage", readonly "url": string } | null, readonly "signIn": ReadonlyArray<{ readonly "kind": "device-code" } | { readonly "kind": "command", readonly "command": string } | { readonly "kind": "environment", readonly "variable": string } | { readonly "kind": "api-key", readonly "variable": string }>, readonly "deviceCodeSignInArgs": ReadonlyArray<string>, readonly "npmPackage": string, readonly "homebrewFormula": string, readonly "selfUpdateArgs": ReadonlyArray<string>, readonly "docsUrl": string, readonly "setupNote": string, readonly "defaultModel": string, readonly "customModelIdExample": string, readonly "modelSlugAliases": { readonly [x: string]: string } | null, readonly "modelCatalogAuthoritative"?: boolean | undefined, readonly "mcpToolCallCeilingSeconds"?: number | undefined, readonly "mcpTransports": ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly "pluginManaged": boolean, readonly "verifiedSkills": boolean, readonly "everydayHarness": boolean, readonly "capabilities": { readonly "sessionModelSwitch": "in-session" | "unsupported", readonly "sessionOptionSwitch"?: "in-session" | "unsupported" | undefined, readonly "runtimeModeSwitch": "in-session" | "next-turn", readonly "contextCompaction"?: "native" | "unsupported" | undefined, readonly "nativeModeSwitch"?: boolean | undefined, readonly "turnSteering"?: boolean | undefined, readonly "reportsSpawnedAgents"?: boolean | undefined, readonly "handlesSkillInvocations"?: boolean | undefined, readonly "discoversRepoSkills"?: boolean | undefined, readonly "confirmsToolTermination"?: boolean | undefined, readonly "acceptsAdditionalDirectories"?: boolean | undefined, readonly "blocksHostMcpWritesInAuto"?: boolean | undefined, readonly "recoversMcpByRelaunch"?: boolean | undefined, readonly "hostMcpToolListing"?: "compact" | "full" | undefined, readonly "inlineImages"?: { readonly "maxBytes": number, readonly "maxEdgePixels"?: number | undefined, readonly "maxTotalBytes"?: number | undefined, readonly "mimeTypes"?: ReadonlyArray<string> | undefined } | undefined }, readonly "credentialSources": ReadonlyArray<{ readonly "kind": "json-file", readonly "pathFromHome": string, readonly "jsonPointer": string } | { readonly "kind": "json-file-os-home", readonly "pathFromOsHome": string, readonly "jsonPointer": string } | { readonly "kind": "macos-keychain", readonly "service": string, readonly "accountFromEnv"?: string | undefined, readonly "defaultHomeOnly": boolean }>, readonly "diagnostics": ReadonlyArray<{ readonly "id": string, readonly "labelKey": string }>, readonly "effectiveCommand"?: string | undefined, readonly "configSchema": { readonly [x: string]: unknown }, readonly "modelConnectivity": { readonly "dialects": ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly "acceptsExternalEndpoints": boolean, readonly "nativePathSuffix"?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly "credentialEnvKey"?: string | undefined, readonly "baseUrlEnvKey"?: string | undefined, readonly "alternateCredentialEnvKeys"?: ReadonlyArray<string> | undefined, readonly "backendSwitchEnvKeys"?: ReadonlyArray<string> | undefined, readonly "extraEnv"?: ReadonlyArray<{ readonly "name": string, readonly "value": string }> | undefined, readonly "extraLaunchArgs"?: ReadonlyArray<{ readonly "key": string, readonly "value": string | boolean }> | undefined, readonly "supportsNativeSubscription"?: boolean | undefined }, readonly "maxConcurrentProcesses"?: number | undefined, readonly "keepsBackgroundServices"?: boolean | undefined }, readonly "origin": "bundled" | "installed" }> };
724
- export type ProvidersWorkspaceInventoryGetInput = { readonly "instanceId": string, readonly "cwd": string, readonly "threadId"?: string, readonly "refresh"?: boolean };
725
- export type ProvidersWorkspaceInventoryGetOutput = { readonly "instanceId": string, readonly "cwd": string, readonly "slashCommands": ReadonlyArray<Objects_94>, readonly "skills": ReadonlyArray<Objects_95>, readonly "source": "workspace" | "machine", readonly "sessionReported"?: boolean, readonly "checkedAt": string };
324
+ export type ProvidersExecutorsListOutput = { readonly entries: ReadonlyArray<{ readonly pluginId: string, readonly entryId: string, readonly loadedAt: string, readonly card: { readonly driverKind: string, readonly displayName: string, readonly iconUrl: string, readonly commandName: string, readonly launchArgs: string, readonly homeEnvVar: string, readonly homeLayout?: { readonly accountConfigKey: string, readonly transcriptSubdir: string, readonly accountEnvVar?: string | undefined } | undefined, readonly accountDirectory?: { readonly configKeys: readonly [string, ...Array<string>], readonly defaultDirectory: string, readonly brandAliases?: ReadonlyArray<string>, readonly holdsThreads?: boolean } | undefined, readonly resumeCommand?: { readonly cursorKeys: readonly [string, ...Array<string>], readonly command: string } | undefined, readonly repositoryInstructionsFile?: string | undefined, readonly signInNotNeededWhen?: { readonly configKey: string, readonly equals: string } | undefined, readonly mcpToolNameStyle?: "server_tool" | undefined, readonly environment: ReadonlyArray<{ readonly name: string, readonly sensitive: boolean }>, readonly install: { readonly kind: "vendorScript", readonly posixCommand: string, readonly windowsCommand: string, readonly installedPathSegment: string } | { readonly kind: "npm" } | { readonly kind: "downloadPage", readonly url: string } | null, readonly signIn: ReadonlyArray<{ readonly kind: "device-code" } | { readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string } | { readonly kind: "api-key", readonly variable: string }>, readonly deviceCodeSignInArgs: ReadonlyArray<string>, readonly npmPackage: string, readonly homebrewFormula: string, readonly selfUpdateArgs: ReadonlyArray<string>, readonly docsUrl: string, readonly setupNote: string, readonly defaultModel: string, readonly customModelIdExample: string, readonly modelSlugAliases: { readonly [x: string]: string } | null, readonly modelCatalogAuthoritative?: boolean | undefined, readonly mcpToolCallCeilingSeconds?: number | undefined, readonly mcpTransports: ReadonlyArray<"stdio" | "http" | "sse"> | null, readonly pluginManaged: boolean, readonly verifiedSkills: boolean, readonly everydayHarness: boolean, readonly capabilities: { readonly sessionModelSwitch: "in-session" | "unsupported", readonly sessionOptionSwitch?: "in-session" | "unsupported" | undefined, readonly runtimeModeSwitch: "in-session" | "next-turn", readonly contextCompaction?: "native" | "unsupported" | undefined, readonly nativeModeSwitch?: boolean | undefined, readonly turnSteering?: boolean | undefined, readonly reportsSpawnedAgents?: boolean | undefined, readonly handlesSkillInvocations?: boolean | undefined, readonly discoversRepoSkills?: boolean | undefined, readonly confirmsToolTermination?: boolean | undefined, readonly acceptsAdditionalDirectories?: boolean | undefined, readonly blocksHostMcpWritesInAuto?: boolean | undefined, readonly recoversMcpByRelaunch?: boolean | undefined, readonly hostTaskList?: boolean | undefined, readonly hostMcpToolListing?: "compact" | "full" | undefined, readonly inlineImages?: { readonly maxBytes: number, readonly maxEdgePixels?: number | undefined, readonly maxTotalBytes?: number | undefined, readonly mimeTypes?: ReadonlyArray<string> | undefined } | undefined }, readonly credentialSources: ReadonlyArray<{ readonly kind: "json-file", readonly pathFromHome: string, readonly jsonPointer: string } | { readonly kind: "json-file-os-home", readonly pathFromOsHome: string, readonly jsonPointer: string } | { readonly kind: "macos-keychain", readonly service: string, readonly accountFromEnv?: string | undefined, readonly defaultHomeOnly: boolean }>, readonly diagnostics: ReadonlyArray<{ readonly id: string, readonly labelKey: string }>, readonly effectiveCommand?: string | undefined, readonly configSchema: { readonly [x: string]: unknown }, readonly modelConnectivity: { readonly dialects: ReadonlyArray<"anthropic-messages" | "openai-responses" | "openai-chat-completions" | "google-cloud-code">, readonly acceptsExternalEndpoints: boolean, readonly nativePathSuffix?: "/v1/messages" | "/responses" | "/chat/completions" | undefined, readonly credentialEnvKey?: string | undefined, readonly baseUrlEnvKey?: string | undefined, readonly alternateCredentialEnvKeys?: ReadonlyArray<string> | undefined, readonly backendSwitchEnvKeys?: ReadonlyArray<string> | undefined, readonly extraEnv?: ReadonlyArray<{ readonly name: string, readonly value: string }> | undefined, readonly extraLaunchArgs?: ReadonlyArray<{ readonly key: string, readonly value: string | boolean }> | undefined, readonly supportsNativeSubscription?: boolean | undefined }, readonly maxConcurrentProcesses?: number | undefined, readonly keepsBackgroundServices?: boolean | undefined }, readonly origin: "bundled" | "installed" }> };
325
+ export type ProvidersWorkspaceInventoryGetInput = { readonly instanceId: string, readonly cwd: string, readonly threadId?: string, readonly refresh?: boolean };
326
+ export type ProvidersWorkspaceInventoryGetOutput = { readonly instanceId: string, readonly cwd: string, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly source: "workspace" | "machine", readonly sessionReported?: boolean, readonly checkedAt: string };
726
327
  export type ProvidersListInput = { };
727
- export type ProvidersListOutput = Objects_116;
728
- export type ProvidersModelsListInput = { readonly "instanceId": string, readonly "includeHidden"?: boolean };
729
- export type ProvidersModelsListOutput = { readonly "models": ReadonlyArray<{ readonly "slug": string, readonly "name": string, readonly "hidden"?: boolean, readonly "options": ReadonlyArray<{ readonly "id": string, readonly "values": ReadonlyArray<string> }> }> };
730
- export type ProvidersInstancesDiagnoseInput = { readonly "instanceId": string };
731
- export type ProvidersInstancesDiagnoseOutput = { readonly "instanceId": string, readonly "driver": string, readonly "checkedAt": string, readonly "steps": ReadonlyArray<{ readonly "id": "binary" | "version" | "handshake" | "session" | "models", readonly "status": "ok" | "fail", readonly "message"?: string | undefined }> };
732
- export type ProvidersBinariesDetectInput = { readonly "command": string };
733
- export type ProvidersBinariesDetectOutput = { readonly "path": string | null };
734
- export type ProvidersAccountsProbeInput = { readonly "driver": string, readonly "accountPaths": ReadonlyArray<string> };
735
- export type ProvidersAccountsProbeOutput = { readonly "probes": ReadonlyArray<{ readonly "accountPath": string, readonly "directoryExists": boolean, readonly "state": "signed-in" | "expired" | "signed-out" | "unreadable" | "unsupported", readonly "email"?: string | undefined, readonly "name"?: string | undefined, readonly "expiresAt"?: string | undefined, readonly "authType"?: "chatgpt" | "apiKey" | undefined }> };
736
- export type ProvidersInstancesRefreshInput = { readonly "instanceId"?: string, readonly "refreshModelCatalog"?: boolean };
737
- export type ProvidersInstancesRefreshOutput = Objects_116;
738
- export type ProvidersInstancesInstallInput = Objects_117;
739
- export type ProvidersInstancesInstallOutput = Objects_118;
740
- export type ProvidersInstancesUpdateInput = Objects_117;
741
- export type ProvidersInstancesUpdateOutput = Objects_118;
742
- export type ProvidersInstancesSignInInput = Objects_117;
743
- export type ProvidersInstancesSignInOutput = Objects_118;
744
- export type ProvidersInstancesCancelMaintenanceInput = Objects_117;
745
- export type ProvidersInstancesCancelMaintenanceOutput = Objects_118;
746
- export type PluginsSignInStartInput = Objects_119;
747
- export type PluginsSignInStartOutput = { readonly "attemptId": string, readonly "expiresAt": string, readonly "kind": "device", readonly "userCode": string, readonly "verificationUrl": string } | { readonly "attemptId": string, readonly "expiresAt": string, readonly "kind": "browser", readonly "authorizationUrl": string };
748
- export type PluginsSignInCompleteInput = { readonly "attemptId": string, readonly "url": string };
328
+ export type ProvidersListOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly enabled: boolean, readonly readiness: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly readinessDetail?: string | undefined, readonly recovery?: ProviderProbeRecovery, readonly defaultModel: string | null, readonly concurrency?: { readonly live: number, readonly max: number } }> };
329
+ export type ProvidersModelsListInput = { readonly instanceId: string, readonly includeHidden?: boolean };
330
+ export type ProvidersModelsListOutput = { readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly hidden?: boolean, readonly options: ReadonlyArray<{ readonly id: string, readonly values: ReadonlyArray<string> }> }> };
331
+ export type ProvidersInstancesDiagnoseInput = { readonly instanceId: string };
332
+ export type ProvidersInstancesDiagnoseOutput = { readonly instanceId: string, readonly driver: string, readonly checkedAt: string, readonly steps: ReadonlyArray<{ readonly id: "binary" | "version" | "handshake" | "session" | "models", readonly status: "ok" | "fail", readonly message?: string | undefined }> };
333
+ export type ProvidersBinariesDetectInput = { readonly command: string };
334
+ export type ProvidersBinariesDetectOutput = { readonly path: string | null };
335
+ export type ProvidersAccountsProbeInput = { readonly driver: string, readonly accountPaths: ReadonlyArray<string> };
336
+ export type ProvidersAccountsProbeOutput = { readonly probes: ReadonlyArray<{ readonly accountPath: string, readonly directoryExists: boolean, readonly state: "signed-in" | "expired" | "signed-out" | "unreadable" | "unsupported", readonly email?: string | undefined, readonly name?: string | undefined, readonly expiresAt?: string | undefined, readonly authType?: "chatgpt" | "apiKey" | undefined }> };
337
+ export type ProvidersInstancesRefreshInput = { readonly instanceId?: string, readonly refreshModelCatalog?: boolean };
338
+ export type ProvidersInstancesRefreshOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly enabled: boolean, readonly readiness: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly readinessDetail?: string | undefined, readonly recovery?: ProviderProbeRecovery, readonly defaultModel: string | null, readonly concurrency?: { readonly live: number, readonly max: number } }> };
339
+ export type ProvidersInstancesInstallInput = { readonly provider: string, readonly instanceId?: string };
340
+ export type ProvidersInstancesInstallOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
341
+ export type ProvidersInstancesUpdateInput = { readonly provider: string, readonly instanceId?: string };
342
+ export type ProvidersInstancesUpdateOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
343
+ export type ProvidersInstancesSignInInput = { readonly provider: string, readonly instanceId?: string };
344
+ export type ProvidersInstancesSignInOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
345
+ export type ProvidersInstancesCancelMaintenanceInput = { readonly provider: string, readonly instanceId?: string };
346
+ export type ProvidersInstancesCancelMaintenanceOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }>, readonly skills: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }>, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate: boolean, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
347
+ export type PluginsSignInStartInput = { readonly entryId: string, readonly name: string };
348
+ export type PluginsSignInStartOutput = { readonly attemptId: string, readonly expiresAt: string, readonly kind: "device", readonly userCode: string, readonly verificationUrl: string } | { readonly attemptId: string, readonly expiresAt: string, readonly kind: "browser", readonly authorizationUrl: string };
349
+ export type PluginsSignInCompleteInput = { readonly attemptId: string, readonly url: string };
749
350
  export type PluginsSignInCompleteOutput = void;
750
- export type PluginsSignInCancelInput = { readonly "attemptId": string };
351
+ export type PluginsSignInCancelInput = { readonly attemptId: string };
751
352
  export type PluginsSignInCancelOutput = void;
752
- export type PluginsSignInSignOutInput = Objects_119;
353
+ export type PluginsSignInSignOutInput = { readonly entryId: string, readonly name: string };
753
354
  export type PluginsSignInSignOutOutput = void;
754
- export type ProjectsConfigGetInput = { readonly "projectId": string, readonly "refresh"?: boolean };
755
- export type ProjectsConfigGetOutput = { readonly "actions"?: ReadonlyArray<Objects_65>, readonly "tasks"?: { readonly [x: string]: { readonly "command": string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "description"?: string, readonly "timeoutSeconds"?: number, readonly "variants"?: { readonly [x: string]: Arrays_24 } } }, readonly "mcpServers"?: { readonly [x: string]: { readonly "name": string, readonly "transport": { readonly "type": "stdio", readonly "command": string, readonly "args"?: Union_45, readonly "envNames": Arrays_26 } | { readonly "type": "http", readonly "url": string, readonly "headerNames": Arrays_27 } | { readonly "type": "sse", readonly "url": string, readonly "headerNames": Arrays_28 }, readonly "enabled": boolean, readonly "providers": Objects_103, readonly "catalogId"?: string | undefined, readonly "oauth"?: Union_42, readonly "addedBy"?: Union_43, readonly "missingSecrets"?: Arrays_29 } }, readonly "skills"?: { readonly [x: string]: { readonly "name": string, readonly "source": Objects_120 | Objects_105 | Objects_106, readonly "enabled"?: boolean | undefined, readonly "modelInvocable": boolean, readonly "userInvocable": boolean, readonly "providers": Objects_107 } }, readonly "projectId": string, readonly "revision": number, readonly "source": "home" | "copy", readonly "homeEnvironmentId"?: string, readonly "syncedAt"?: string, readonly "homeOutdated"?: true };
756
- export type ProjectsConfigUpdateInput = { readonly "actions"?: ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "command": string, readonly "icon": "play" | "test" | "lint" | "configure" | "build" | "debug", readonly "runOnWorktreeCreate": boolean, readonly "browserUrl"?: string, readonly "autoOpenBrowser"?: boolean }>, readonly "tasks"?: Objects_121, readonly "mcpServers"?: { readonly [x: string]: { readonly "name": string, readonly "transport": { readonly "type": "stdio", readonly "command": string, readonly "args"?: Arrays_25, readonly "env"?: Objects_122 } | { readonly "type": "http", readonly "url": string, readonly "headers"?: Objects_122 } | { readonly "type": "sse", readonly "url": string, readonly "headers"?: Objects_122 }, readonly "enabled"?: boolean, readonly "providers"?: Objects_123, readonly "catalogId"?: string } }, readonly "skills"?: { readonly [x: string]: { readonly "name": string, readonly "source": Union_46, readonly "enabled"?: boolean, readonly "modelInvocable"?: boolean, readonly "userInvocable"?: boolean, readonly "providers"?: Objects_123 } }, readonly "projectId": string, readonly "revision": number };
757
- export type ProjectsConfigUpdateOutput = { readonly "revision": number };
758
- export type PluginsInstalledListInput = { readonly "includeRuntimeStats"?: boolean, readonly "entryId"?: string, readonly "limit"?: number, readonly "cursor"?: string };
759
- export type PluginsInstalledListOutput = { readonly "plugins": ReadonlyArray<{ readonly "signIns"?: ReadonlyArray<{ readonly "name": string, readonly "label"?: string, readonly "labelKey"?: string, readonly "state": string, readonly "account"?: string, readonly "kind": string, readonly "redirectUri"?: string, readonly "attempt"?: { readonly "attemptId": string, readonly "state": string, readonly "error"?: string } }>, readonly "publicServices"?: ReadonlyArray<{ readonly "service": string, readonly "publicPath": string, readonly "routes": ReadonlyArray<Objects_126> }> | undefined, readonly "slashCommands"?: ReadonlyArray<{ readonly "name": string, readonly "kind": "prompt" | "action", readonly "description"?: string | undefined, readonly "argumentHint"?: string | undefined, readonly "translations"?: Union_47 }> | undefined, readonly "entryId": string, readonly "revision"?: string | undefined, readonly "pluginId": string, readonly "presentation"?: { readonly "displayName": string, readonly "description"?: string | undefined, readonly "translations"?: { readonly [x: string]: { readonly "displayName"?: string | undefined, readonly "description"?: string | undefined } } | undefined, readonly "author"?: string | undefined, readonly "homepage"?: string | undefined, readonly "icon"?: string | undefined } | undefined, readonly "origin": "builtin" | "package" | "directory" | "thread", readonly "location": string | null, readonly "version": string | null, readonly "packageName"?: string | null | undefined, readonly "loadedAt"?: string | undefined, readonly "configRevision"?: number | undefined, readonly "uiDebug"?: Union_48, readonly "uiRevision"?: string | undefined, readonly "uiDigest"?: string | undefined, readonly "assetDigests"?: Union_49, readonly "proxyIds"?: Union_50, readonly "state": "loaded" | "failed" | "stopped" | "disabled", readonly "contributions": Arrays_31, readonly "failure": { readonly "phase": string, readonly "message": string, readonly "kind"?: string | undefined } | null, readonly "threadId": string | null, readonly "runtimeStats"?: Union_51, readonly "removable"?: boolean | undefined, readonly "permissions"?: ReadonlyArray<Objects_127 | { readonly "kind": "fs.read", readonly "paths": ReadonlyArray<string> } | Objects_128 | Objects_129 | Objects_130 | Objects_131 | Objects_132 | { readonly "kind": "process.spawn", readonly "programs": ReadonlyArray<string | { readonly "key": string, readonly "program": string, readonly "displayName"?: string | undefined }>, readonly "maxConcurrent"?: number } | Objects_133 | Objects_134 | { readonly "kind": "network.serve", readonly "services": ReadonlyArray<{ readonly "name": string, readonly "routes": ReadonlyArray<Objects_126> }> } | Objects_135 | Objects_136 | Objects_137 | Objects_138 | Objects_139 | Objects_140 | Objects_141 | Objects_142 | { readonly "kind": "ui.seats", readonly "seats": ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view"> } | { readonly "kind": "commands.dispatch", readonly "commands": ReadonlyArray<string> } | { readonly "kind": "unknown", readonly "reportedKind": string }> | undefined, readonly "ui"?: { readonly "assetsPath": string, readonly "entry"?: string | undefined, readonly "pages"?: ReadonlyArray<{ readonly "id": string, readonly "titleKey": string, readonly "icon"?: string | undefined, readonly "chrome"?: "host" | "own" | undefined, readonly "placements"?: Union_52 }> | undefined, readonly "panels"?: ReadonlyArray<{ readonly "id": string, readonly "titleKey": string, readonly "icon"?: string | undefined }> | undefined, readonly "providerSettings"?: ReadonlyArray<{ readonly "id": string, readonly "driverKind": string, readonly "ownedFields"?: { readonly "add"?: ReadonlyArray<string> | undefined, readonly "edit"?: ReadonlyArray<string> | undefined } | undefined, readonly "ownedEnvironment"?: ReadonlyArray<string> | undefined, readonly "genericFields"?: "inline" | "collapsed" | undefined }> | undefined, readonly "threadAnnotations"?: { readonly "command": string } | undefined, readonly "appearance"?: { readonly "name": string, readonly "wallpaper": string, readonly "dimLight"?: number | undefined, readonly "dimDark"?: number | undefined, readonly "blur"?: number | undefined } | undefined, readonly "toolViews"?: ReadonlyArray<{ readonly "tool": string, readonly "view"?: string | undefined, readonly "placement"?: "inline" | "deliverable" | undefined, readonly "titleKey"?: string | undefined, readonly "titleBy"?: { readonly "arg": string, readonly "titleKeys": { readonly [x: string]: string } } | undefined, readonly "summary"?: ReadonlyArray<string> | undefined }> | undefined, readonly "chatWatchers"?: ReadonlyArray<string> | undefined, readonly "teamViews"?: ReadonlyArray<{ readonly "key": string, readonly "scopes": Arrays_32, readonly "titleKey": string, readonly "icon"?: string | undefined, readonly "order"?: number | undefined }> | undefined, readonly "development"?: { readonly "command": string, readonly "args": Arrays_33, readonly "watch": ReadonlyArray<string> } | undefined } | undefined, readonly "executors"?: ReadonlyArray<unknown> | undefined }>, readonly "nextCursor"?: string | null };
760
- export type PluginsInstalledSetEnabledInput = { readonly "entryId": string, readonly "enabled": boolean, readonly "revision": string, readonly "force"?: boolean };
761
- export type PluginsInstalledSetEnabledOutput = { readonly "revision": string };
762
- export type PluginsSessionProjectionsGetInput = { readonly "pluginId": string, readonly "name": string, readonly "threadId": string };
763
- export type PluginsSessionProjectionsGetOutput = { readonly "present": boolean, readonly "value": unknown };
764
- export type PluginsSessionProjectionsSetInput = { readonly "name": string, readonly "threadId": string, readonly "value": unknown };
355
+ export type ProjectsConfigGetInput = { readonly projectId: string, readonly refresh?: boolean };
356
+ export type ProjectsConfigGetOutput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string> | undefined, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled: boolean, readonly providers: { readonly [x: string]: boolean }, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined, readonly missingSecrets?: ReadonlyArray<string> } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable: boolean, readonly userInvocable: boolean, readonly providers: { readonly [x: string]: boolean } } }, readonly projectId: string, readonly revision: number, readonly source: "home" | "copy", readonly homeEnvironmentId?: string, readonly syncedAt?: string, readonly homeOutdated?: true };
357
+ export type ProjectsConfigUpdateInput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string, readonly autoOpenBrowser?: boolean }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string>, readonly env?: { readonly [x: string]: string | null } } | { readonly type: "http", readonly url: string, readonly headers?: { readonly [x: string]: string | null } } | { readonly type: "sse", readonly url: string, readonly headers?: { readonly [x: string]: string | null } }, readonly enabled?: boolean, readonly providers?: { readonly [x: string]: boolean }, readonly catalogId?: string } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean, readonly modelInvocable?: boolean, readonly userInvocable?: boolean, readonly providers?: { readonly [x: string]: boolean } } }, readonly projectId: string, readonly revision: number };
358
+ export type ProjectsConfigUpdateOutput = { readonly revision: number };
359
+ export type PluginsInstalledListInput = { readonly includeRuntimeStats?: boolean, readonly entryId?: string, readonly limit?: number, readonly cursor?: string };
360
+ export type PluginsInstalledListOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view"> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: "unknown", readonly reportedKind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
361
+ export type PluginsInstalledSetEnabledInput = { readonly entryId: string, readonly enabled: boolean, readonly revision: string, readonly force?: boolean, readonly acceptedPermissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly conflictChoice?: "project" | "machine" };
362
+ export type PluginsInstalledSetEnabledOutput = { readonly revision: string };
363
+ export type PluginsProjectInstallMachineInput = { readonly projectId: string, readonly pluginId: string, readonly pluginDir: string, readonly acceptedPermissions: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: readonly ["conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view", ...Array<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">] } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<"thread.artifact.deliver" | "thread.create" | "thread.fork" | "thread.import" | "thread.external-messages.append" | "thread.turn.interrupt" | "thread.approval.respond" | "thread.turn-intent.run" | "thread.turn-intent.cancel" | "thread.turn-queue.resume" | "thread.turn-intent.set-paused" | "thread.turn-intent.reorder" | "thread.turn-queue.pause" | "thread.user-input.dismiss" | "thread.scheduled-wake.schedule" | "thread.scheduled-wake.cancel" | "thread.snooze" | "thread.unsnooze" | "thread.reorder" | "thread.interaction-mode.set" | "thread.native-mode.set" | "thread.runtime-mode.set" | "thread.context.compact" | "thread.archive" | "thread.unarchive" | "thread.settle" | "thread.unsettle" | "machineSettings.update" | "machineSettings.keybindings.write" | "machineSettings.wallpaper.adopt" | "machineSettings.browser.cookies.import" | "projects.config.update" | "plugins.settingsCards.updateValues" | "plugins.installed.setEnabled" | "project.schedule.save" | "project.schedule.delete" | "project.create" | "projects.conversation.ensure" | "project.folder.attach" | "project.archive" | "project.unarchive" | "project.reorder" | "project.folder.detach" | "project.folder.relocate" | "thread.session.stop" | "thread.session.restart" | "plugins.notifications.markRead" | "plugins.notifications.clear" | "memory.experience.record" | "memory.experience.revise" | "memory.experience.forget" | "memory.experience.restore" | "wiki.page.create" | "wiki.page.edit" | "wiki.page.restore" | "wiki.handbook.publish" | "wiki.handbook.revert" | "work.item.create" | "work.item.update" | "work.item.claim" | "work.relation.add" | "work.relation.remove" | "communication.post.send" | "member.create" | "member.update" | "member.remove" | "member.restore" | "member.trial.record" | "member.externalWake.deliver" | "work.line.create" | "work.line.update" | "work.line.archive" | "work.line.restore" | "work.line.pause" | "work.line.resume" | "work.item.archive" | "work.item.unarchive" | "work.label.create" | "work.label.update" | "work.label.remove" | "work.label.restore" | "work.state.create" | "work.state.update" | "work.state.remove" | "work.state.restore" | "work.machine-task.create" | "thread.meta.update" | "thread.members.update" | "thread.turn.start" | "communication.message.send" | "communication.delivery.bind" | "thread.user-input.respond" | "thread.browser.capture" | "thread.browser.recording.start" | "thread.browser.recording.stop" | "thread.browser.download.cancel" | "thread.worktree.prepare"> }>, readonly revision: string };
364
+ export type PluginsProjectInstallMachineOutput = { readonly entryId: string, readonly installedPath: string };
365
+ export type PluginsProjectScanInput = { readonly projectId: string };
366
+ export type PluginsProjectScanOutput = { };
367
+ export type PluginsSessionProjectionsGetInput = { readonly pluginId: string, readonly entryId?: string, readonly name: string, readonly threadId: string };
368
+ export type PluginsSessionProjectionsGetOutput = { readonly present: boolean, readonly value: unknown };
369
+ export type PluginsSessionProjectionsSetInput = { readonly name: string, readonly threadId: string, readonly value: unknown };
765
370
  export type PluginsSessionProjectionsSetOutput = { };
766
371
  export type PluginsNotificationsListInput = { };
767
- export type PluginsNotificationsListOutput = { readonly "notifications": ReadonlyArray<{ readonly "id": string, readonly "createdAt": string, readonly "read": boolean, readonly "kind": "task-succeeded", readonly "taskKind": "install" | "update" | "uninstall", readonly "subject": string, readonly "pluginId"?: string | undefined, readonly "fallbackName"?: string | undefined, readonly "dataKeptFor"?: string, readonly "purged"?: boolean } | { readonly "id": string, readonly "createdAt": string, readonly "read": boolean, readonly "kind": "task-failed", readonly "taskKind": "install" | "update" | "uninstall", readonly "subject": string, readonly "pluginId"?: string | undefined, readonly "fallbackName"?: string | undefined, readonly "failure": { readonly "kind": "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "unsupportedProcessProgram" | "plugin", readonly "summary": string } } | { readonly "id": string, readonly "createdAt": string, readonly "read": boolean, readonly "kind": "sign-in-expired", readonly "entryId": string, readonly "pluginId": string, readonly "name": string, readonly "label"?: string, readonly "labelKey"?: string }> };
768
- export type PluginsNotificationsMarkReadInput = Objects_143;
372
+ export type PluginsNotificationsListOutput = { readonly notifications: ReadonlyArray<{ readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-succeeded", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly dataKeptFor?: string, readonly purged?: boolean } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "task-failed", readonly taskKind: "install" | "update" | "uninstall", readonly subject: string, readonly pluginId?: string | undefined, readonly fallbackName?: string | undefined, readonly failure: { readonly kind: "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "unsupportedProcessProgram" | "plugin", readonly summary: string } } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "sign-in-expired", readonly entryId: string, readonly pluginId: string, readonly name: string, readonly label?: string, readonly labelKey?: string } | { readonly id: string, readonly createdAt: string, readonly read: boolean, readonly kind: "folder-target-confirmation", readonly pluginId: string, readonly projectId: string, readonly folderId: string, readonly attachedAt: string, readonly path: string, readonly target: string }> };
373
+ export type PluginsNotificationsMarkReadInput = { readonly ids: readonly [string, ...Array<string>] };
769
374
  export type PluginsNotificationsMarkReadOutput = { };
770
- export type PluginsNotificationsClearInput = Objects_143;
375
+ export type PluginsNotificationsClearInput = { readonly ids: readonly [string, ...Array<string>] };
771
376
  export type PluginsNotificationsClearOutput = { };
772
377
  export type PluginsSettingsCardsListInput = { };
773
- export type PluginsSettingsCardsListOutput = { readonly "cards": ReadonlyArray<{ readonly "entryId": string, readonly "revision"?: string | undefined, readonly "title"?: string | undefined, readonly "titleKey"?: string | undefined, readonly "description"?: string | undefined, readonly "descriptionKey"?: string | undefined, readonly "presentation"?: "hidden" | undefined, readonly "fields": ReadonlyArray<{ readonly "key": string, readonly "label"?: string | undefined, readonly "labelKey"?: string | undefined, readonly "description"?: string | undefined, readonly "descriptionKey"?: string | undefined, readonly "placeholder"?: string | undefined, readonly "placeholderKey"?: string | undefined, readonly "required"?: boolean | undefined, readonly "options"?: Union_53, readonly "showWhen"?: Union_54, readonly "kind": "text" | "password" | "number" | "boolean" | "select" | "proxy" | "table", readonly "columns"?: ReadonlyArray<{ readonly "key": string, readonly "label"?: string | undefined, readonly "labelKey"?: string | undefined, readonly "description"?: string | undefined, readonly "descriptionKey"?: string | undefined, readonly "placeholder"?: string | undefined, readonly "placeholderKey"?: string | undefined, readonly "required"?: boolean | undefined, readonly "options"?: Union_53, readonly "showWhen"?: Union_54, readonly "kind": "text" | "password" | "number" | "boolean" | "select" | "proxy" }> | undefined, readonly "rowIds"?: "client" | "plugin" | undefined, readonly "rowActions"?: ReadonlyArray<{ readonly "id": string, readonly "labelKey": string, readonly "descriptionKey"?: string | undefined, readonly "badgeKey"?: string | undefined, readonly "warningKey"?: string | undefined, readonly "command": string, readonly "showWhen"?: Objects_144 | undefined, readonly "fills": ReadonlyArray<string> }> | undefined }>, readonly "actions"?: ReadonlyArray<{ readonly "id": string, readonly "labelKey": string, readonly "descriptionKey"?: string | undefined, readonly "badgeKey"?: string | undefined, readonly "warningKey"?: string | undefined, readonly "command": string }> | undefined, readonly "effectiveCommand"?: string | undefined, readonly "values": Objects_145, readonly "secretFields"?: ReadonlyArray<string> | undefined, readonly "secretCells"?: ReadonlyArray<{ readonly "field": string, readonly "row": string, readonly "column": string }> | undefined }> };
378
+ export type PluginsSettingsCardsListOutput = { readonly cards: ReadonlyArray<{ readonly entryId: string, readonly revision?: string | undefined, readonly title?: string | undefined, readonly titleKey?: string | undefined, readonly description?: string | undefined, readonly descriptionKey?: string | undefined, readonly presentation?: "hidden" | undefined, readonly fields: ReadonlyArray<{ readonly key: string, readonly label?: string | undefined, readonly labelKey?: string | undefined, readonly description?: string | undefined, readonly descriptionKey?: string | undefined, readonly placeholder?: string | undefined, readonly placeholderKey?: string | undefined, readonly required?: boolean | undefined, readonly options?: ReadonlyArray<{ readonly value: string, readonly label?: string | undefined, readonly labelKey?: string | undefined, readonly icon?: string | undefined }> | undefined, readonly showWhen?: { readonly key: string, readonly equals: ReadonlyArray<string> } | undefined, readonly kind: "text" | "password" | "number" | "boolean" | "select" | "proxy" | "table", readonly columns?: ReadonlyArray<{ readonly key: string, readonly label?: string | undefined, readonly labelKey?: string | undefined, readonly description?: string | undefined, readonly descriptionKey?: string | undefined, readonly placeholder?: string | undefined, readonly placeholderKey?: string | undefined, readonly required?: boolean | undefined, readonly options?: ReadonlyArray<{ readonly value: string, readonly label?: string | undefined, readonly labelKey?: string | undefined, readonly icon?: string | undefined }> | undefined, readonly showWhen?: { readonly key: string, readonly equals: ReadonlyArray<string> } | undefined, readonly kind: "text" | "password" | "number" | "boolean" | "select" | "proxy" }> | undefined, readonly rowIds?: "client" | "plugin" | undefined, readonly rowActions?: ReadonlyArray<{ readonly id: string, readonly labelKey: string, readonly descriptionKey?: string | undefined, readonly badgeKey?: string | undefined, readonly warningKey?: string | undefined, readonly command: string, readonly showWhen?: { readonly key: string, readonly equals: ReadonlyArray<string> } | undefined, readonly fills: ReadonlyArray<string> }> | undefined }>, readonly actions?: ReadonlyArray<{ readonly id: string, readonly labelKey: string, readonly descriptionKey?: string | undefined, readonly badgeKey?: string | undefined, readonly warningKey?: string | undefined, readonly command: string }> | undefined, readonly effectiveCommand?: string | undefined, readonly values: { readonly [x: string]: unknown }, readonly secretFields?: ReadonlyArray<string> | undefined, readonly secretCells?: ReadonlyArray<{ readonly field: string, readonly row: string, readonly column: string }> | undefined }> };
774
379
  export type PluginsSkillsListInput = { };
775
- export type PluginsSkillsListOutput = { readonly "skills": ReadonlyArray<{ readonly "name": string, readonly "source": { readonly "kind": "builtin" } | { readonly "kind": "plugin", readonly "entryId": string }, readonly "description"?: string, readonly "summary"?: { readonly [x: string]: string } }> };
776
- export type PluginsSkillDirectorySearchInput = { readonly "query": string, readonly "limit"?: number };
777
- export type PluginsSkillDirectorySearchOutput = { readonly "skills": ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "skillId": string, readonly "source": string, readonly "repository": string | null, readonly "installs": number, readonly "url": string }> };
778
- export type PluginsSkillDirectoryGetInput = { readonly "repository": string, readonly "skillId": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
779
- export type PluginsSkillDirectoryGetOutput = { readonly "repository": string, readonly "path": string, readonly "skillMd": string, readonly "skillMdWindow"?: Objects_59, readonly "extraFiles": number, readonly "name": string };
780
- export type PluginsSkillDirectoryInstallInput = { readonly "repository": string, readonly "skillId": string, readonly "name"?: string };
781
- export type PluginsSkillDirectoryInstallOutput = { readonly "name": string, readonly "path": string, readonly "extraFiles": number };
782
- export type PluginsSettingsCardsUpdateValuesInput = { readonly "entryId": string, readonly "values": Objects_145, readonly "revision": string };
783
- export type PluginsSettingsCardsUpdateValuesOutput = { readonly "revision": string };
784
- export type UsageQuotaGetInput = { readonly "instanceIds"?: ReadonlyArray<string>, readonly "refresh": boolean };
785
- export type UsageQuotaGetOutput = { readonly "contractVersion": number, readonly "hostId": string, readonly "instances": ReadonlyArray<Objects_146> };
786
- export type UsageTokensGetInput = { readonly "sinceDay": string, readonly "untilDay": string, readonly "timeZone": string, readonly "resolution"?: "day" | "hour", readonly "sinceTime"?: string, readonly "untilTime"?: string };
787
- export type UsageTokensGetOutput = { readonly "contractVersion": number, readonly "readAt": string, readonly "timeZone": string, readonly "sinceDay": string, readonly "untilDay": string, readonly "buckets": ReadonlyArray<{ readonly "day": string, readonly "hourStart"?: string | undefined, readonly "provider": "claude" | "codex" | "grok" | "opencode" | "dsh" | "kimi" | "pi" | "antigravity" | "zcode" | "acp", readonly "model": string, readonly "totals": { readonly "uncachedInputTokens": number, readonly "cachedInputTokens": number, readonly "cacheCreationTokens": number, readonly "outputTokens": number, readonly "reasoningTokens": number }, readonly "costUsd": number, readonly "cacheSavingsUsd": number, readonly "costSource": "providerReported" | "modelPriced" | "unpriced", readonly "records": number, readonly "unpricedRecords": number, readonly "sessions": number }>, readonly "sources": ReadonlyArray<{ readonly "fingerprint": { readonly "hostId": string, readonly "provider": "claude" | "codex" | "grok" | "opencode" | "dsh" | "kimi" | "pi" | "antigravity" | "zcode" | "acp", readonly "resolvedHomePath": string, readonly "volumeId": string }, readonly "instanceId"?: string, readonly "kind"?: "transcript" | "orchestration", readonly "status": "ok" | "missing" | "partial" | "failed", readonly "scannedFiles": number, readonly "skippedFiles": number, readonly "malformedRecords": number, readonly "distinctSessions": number, readonly "message": string | null }>, readonly "pricing": { readonly "status": "fresh" | "cached" | "unavailable", readonly "source": string, readonly "fetchedAt": string | null, readonly "knownModels": number }, readonly "scanDurationMs": number };
788
- export type UsageTimeGetInput = { readonly "since": string, readonly "until": string };
789
- export type UsageTimeGetOutput = { readonly "readAt": string, readonly "agentRunningMs": number, readonly "waitingForYouMs": number, readonly "approvalWaitMs": number, readonly "userInputWaitMs": number, readonly "projects": ReadonlyArray<{ readonly "projectId": string, readonly "title": string, readonly "agentRunningMs": number, readonly "waitingForYouMs": number, readonly "approvalWaitMs": number, readonly "userInputWaitMs": number }> };
790
- export type UsageQuotaRedeemResetInput = { readonly "instanceId": string, readonly "requestId"?: string };
791
- export type UsageQuotaRedeemResetOutput = { readonly "outcome": "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed", readonly "instance": Objects_146 };
792
- export type WakesScheduleInput = { readonly "threadId"?: string, readonly "delaySeconds"?: number, readonly "dueAt"?: string, readonly "note": string, readonly "afterServerUpgrade"?: boolean, readonly "repeat"?: { readonly "cron": string, readonly "timeZone": string }, readonly "requestId"?: string };
793
- export type WakesScheduleOutput = { readonly "wake": Objects_147 };
794
- export type WakesCancelInput = { readonly "wakeId": string, readonly "requestId"?: string };
795
- export type WakesCancelOutput = { readonly "wake": Objects_147 };
796
- export type WakesListInput = { readonly "threadId"?: string, readonly "state"?: "scheduled" | "fired" | "cancelled" };
797
- export type WakesListOutput = { readonly "wakes": ReadonlyArray<Objects_147> };
798
- export type SchedulesListInput = { readonly "projectId": string };
799
- export type SchedulesListOutput = { readonly "schedules": ReadonlyArray<Objects_148> };
800
- export type SchedulesRunsListInput = { readonly "scheduleId": string, readonly "limit"?: number };
801
- export type SchedulesRunsListOutput = { readonly "runs": ReadonlyArray<{ readonly "runId": string, readonly "scheduleId": string, readonly "projectId": string, readonly "scheduledFor": string, readonly "outcome": "started" | "skipped" | "failed", readonly "threadId": string | null, readonly "detail": string | null, readonly "at": string, readonly "threadStatus": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | null }> };
802
- export type SchedulesSaveInput = { readonly "scheduleId"?: string, readonly "projectId": string, readonly "name": string, readonly "prompt": string, readonly "repeat": Objects_150, readonly "modelSelection"?: { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_44 }, readonly "runtimeMode"?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "workspace"?: "project" | "worktree", readonly "presetId"?: string, readonly "enabled"?: boolean, readonly "requestId"?: string };
803
- export type SchedulesSaveOutput = { readonly "schedule": Objects_148 };
804
- export type SchedulesDeleteInput = { readonly "scheduleId": string, readonly "requestId"?: string };
805
- export type SchedulesDeleteOutput = { readonly "scheduleId": string };
806
- export type SkillsListInput = { readonly "threadId"?: string };
807
- export type SkillsListOutput = { readonly "skills": ReadonlyArray<{ readonly "name": string, readonly "description"?: string, readonly "origin"?: Objects_151 | Objects_152 | Objects_153 | Objects_154 | Objects_155 }>, readonly "shadowed"?: ReadonlyArray<{ readonly "name": string, readonly "origin": Objects_151 | Objects_152 | Objects_153 | Objects_154 | Objects_155, readonly "by": "wiki" | "repo" | "settings" | "builtin" | "plugin" }>, readonly "repoReadByCli"?: true };
808
- export type SkillsReadInput = { readonly "threadId"?: string, readonly "name": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
809
- export type SkillsReadOutput = { readonly "name": string, readonly "directory": string, readonly "content": string, readonly "contentWindow"?: Objects_59 };
810
- export type MemoryExperiencesListInput = { readonly "projectId": string, readonly "status"?: "active" | "forgotten" | "erased", readonly "order"?: "created" | "leastRecentlyUsed", readonly "cursor"?: string, readonly "limit"?: number };
811
- export type MemoryExperiencesListOutput = { readonly "items": ReadonlyArray<{ readonly "experienceId": string, readonly "status": "active" | "forgotten" | "erased", readonly "author": Union_56, readonly "sourceThreadId": string | null, readonly "sourceTurnId": string | null, readonly "currentRevision": number, readonly "createdAt": string, readonly "updatedAt": string, readonly "supersedes": Arrays_34, readonly "supersededBy"?: Arrays_35, readonly "bodyState": "present" | "erased" | "unavailable", readonly "usage"?: Objects_163, readonly "title"?: string, readonly "applicability"?: string, readonly "excerpt": string | null }>, readonly "nextCursor": string | null };
812
- export type MemoryExperiencesGetInput = { readonly "projectId": string, readonly "experienceId": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
813
- export type MemoryExperiencesGetOutput = { readonly "experienceId": string, readonly "status": "active" | "forgotten" | "erased", readonly "author": Union_56, readonly "sourceThreadId": string | null, readonly "sourceTurnId": string | null, readonly "currentRevision": number, readonly "createdAt": string, readonly "updatedAt": string, readonly "supersedes": Arrays_34, readonly "supersededBy"?: Arrays_35, readonly "bodyState": "present" | "erased" | "unavailable", readonly "usage"?: Objects_163, readonly "title"?: string, readonly "applicability"?: string, readonly "body": string | null, readonly "bodyWindow"?: Objects_59, readonly "forgottenAt": string | null, readonly "forgottenBy": Union_56 | null, readonly "erasedAt": string | null, readonly "erasedBy": Union_56 | null };
814
- export type MemoryExperiencesHistoryInput = { readonly "projectId": string, readonly "experienceId": string, readonly "cursor"?: string, readonly "limit"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number };
815
- export type MemoryExperiencesHistoryOutput = { readonly "items": ReadonlyArray<Objects_164>, readonly "nextCursor": string | null };
816
- export type MemoryRevisionsGetInput = { readonly "projectId": string, readonly "experienceId": string, readonly "revision": number, readonly "textOffset"?: number, readonly "textLimit"?: number };
817
- export type MemoryRevisionsGetOutput = Objects_164;
818
- export type MemorySearchInput = { readonly "projectId": string, readonly "text": string, readonly "mode"?: "recall" | "keyword", readonly "limit"?: number };
819
- export type MemorySearchOutput = { readonly "status": "ok" | "unavailable", readonly "hits": ReadonlyArray<{ readonly "subject": { readonly "kind": "experience", readonly "id": string } | { readonly "kind": "page", readonly "id": string }, readonly "revision": number, readonly "title"?: string, readonly "headingPath": string, readonly "snippet": string, readonly "score": number, readonly "unmatched"?: true }>, readonly "code"?: "fts_unavailable" | "index_damaged" | "not_initialized" };
820
- export type MemoryExperiencesRecordInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "experienceId"?: string, readonly "body": string, readonly "title"?: string, readonly "applicability"?: string, readonly "sourceThreadId"?: string, readonly "sourceTurnId"?: string, readonly "supersedes"?: ReadonlyArray<string> };
821
- export type MemoryExperiencesRecordOutput = { readonly "sequence": number, readonly "result": Objects_165, readonly "replayed"?: boolean } | Objects_166;
822
- export type MemoryExperiencesReviseInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "experienceId": string, readonly "baseRevision": number, readonly "body": string, readonly "title"?: string, readonly "applicability"?: string };
823
- export type MemoryExperiencesReviseOutput = { readonly "sequence": number, readonly "result": Objects_165, readonly "replayed"?: boolean };
824
- export type MemoryExperiencesForgetInput = Objects_167;
825
- export type MemoryExperiencesForgetOutput = Objects_168;
826
- export type MemoryExperiencesRestoreInput = Objects_167;
827
- export type MemoryExperiencesRestoreOutput = Objects_168;
828
- export type MemoryExperiencesEraseInput = Objects_167;
829
- export type MemoryExperiencesEraseOutput = { readonly "sequence": number, readonly "result": { readonly "experienceId": string }, readonly "replayed"?: boolean };
830
- export type MemoryPagesListInput = { readonly "projectId": string, readonly "status"?: "active" | "erased", readonly "cursor"?: string, readonly "limit"?: number };
831
- export type MemoryPagesListOutput = { readonly "items": ReadonlyArray<{ readonly "pageId": string, readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly "parentPageId": string | null, readonly "currentRevision": number, readonly "locked": boolean, readonly "archivedAt": string | null, readonly "erasedAt": string | null, readonly "createdAt": string, readonly "revisedAt": string, readonly "updatedAt": string, readonly "title": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "excerpt": string | null }>, readonly "nextCursor": string | null };
832
- export type MemoryPagesGetInput = { readonly "projectId": string, readonly "pageId": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
833
- export type MemoryPagesGetOutput = { readonly "pageId": string, readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly "parentPageId": string | null, readonly "currentRevision": number, readonly "locked": boolean, readonly "archivedAt": string | null, readonly "erasedAt": string | null, readonly "createdAt": string, readonly "revisedAt": string, readonly "updatedAt": string, readonly "title": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "createdBy": Union_56, readonly "body": string | null, readonly "bodyWindow"?: Objects_59, readonly "erasedBy": Union_56 | null };
834
- export type MemoryPagesHistoryInput = { readonly "projectId": string, readonly "pageId": string, readonly "cursor"?: string, readonly "limit"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number };
835
- export type MemoryPagesHistoryOutput = { readonly "items": ReadonlyArray<Objects_169>, readonly "nextCursor": string | null };
836
- export type MemoryPageRevisionsGetInput = { readonly "projectId": string, readonly "pageId": string, readonly "revision": number, readonly "textOffset"?: number, readonly "textLimit"?: number };
837
- export type MemoryPageRevisionsGetOutput = Objects_169;
838
- export type MemoryPagesCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "pageId"?: string, readonly "kind": "doc" | "skill", readonly "parentPageId"?: string, readonly "title": string, readonly "body": string, readonly "changeSummary"?: string };
839
- export type MemoryPagesCreateOutput = { readonly "sequence": number, readonly "result": Objects_170, readonly "replayed"?: boolean };
840
- export type MemoryPagesEditInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "pageId": string, readonly "baseRevision": number, readonly "title"?: string, readonly "body": string, readonly "changeSummary"?: string };
841
- export type MemoryPagesEditOutput = { readonly "sequence": number, readonly "result": Objects_170, readonly "replayed"?: boolean };
842
- export type MemoryPagesRestoreInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "pageId": string, readonly "baseRevision": number, readonly "fromRevision": number };
843
- export type MemoryPagesRestoreOutput = { readonly "sequence": number, readonly "result": Objects_170, readonly "replayed"?: boolean };
844
- export type MemoryPagesEraseInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "pageId": string };
845
- export type MemoryPagesEraseOutput = { readonly "sequence": number, readonly "result": { readonly "pageId": string }, readonly "replayed"?: boolean };
846
- export type ThreadsArtifactsListInput = { readonly "threadId": string, readonly "cursor"?: string | null, readonly "limit"?: number };
847
- export type ThreadsArtifactsListOutput = { readonly "items": ReadonlyArray<{ readonly "attachmentId": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "title"?: string | undefined, readonly "note"?: string | undefined, readonly "sourcePath": string, readonly "turnId": string | null, readonly "messageId": string, readonly "deliveredAt": string, readonly "modelSelection"?: { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_3 }, readonly "homeSync"?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly "nextCursor": string | null };
848
- export type ProjectsArtifactsListInput = { readonly "projectId": string, readonly "workItemId"?: string, readonly "cursor"?: string | null, readonly "limit"?: number };
849
- export type ProjectsArtifactsListOutput = { readonly "items": ReadonlyArray<{ readonly "attachmentId": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "title"?: string | undefined, readonly "note"?: string | undefined, readonly "fileCount"?: number | undefined, readonly "deliveredAt": string, readonly "postId"?: string, readonly "deliverer"?: Objects_156 | Objects_157 | Objects_158 | Objects_159 | Objects_160 | Objects_161 | Objects_162, readonly "environmentId"?: string, readonly "threadId"?: string, readonly "remoteThreadId"?: string, readonly "threadTitle"?: string, readonly "threadDeleted": boolean, readonly "workItemId"?: string, readonly "workItemSequenceId"?: number, readonly "homeSync"?: "delivered" | "pending" | "needs-attention" | "refused", readonly "missing": boolean }>, readonly "nextCursor": string | null };
850
- export type ThreadsArtifactsDeliverInput = { readonly "threadId": string, readonly "requestId": string, readonly "workItemId"?: string, readonly "path"?: string, readonly "files"?: ReadonlyArray<{ readonly "path": string, readonly "title"?: string, readonly "note"?: string }>, readonly "title"?: string, readonly "note"?: string };
851
- export type ThreadsArtifactsDeliverOutput = { readonly "sequence": number, readonly "result": { readonly "deliveryId"?: string, readonly "files": ReadonlyArray<{ readonly "attachmentId": string, readonly "name": string, readonly "sizeBytes": number, readonly "alreadyDelivered": boolean, readonly "homeSync"?: "delivered" | "pending" | "needs-attention" | "refused" }> }, readonly "replayed"?: boolean };
852
- export type MemoryHandbookGetInput = { readonly "projectId": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
853
- export type MemoryHandbookGetOutput = { readonly "head": { readonly "current": Objects_171, readonly "pages": ReadonlyArray<Objects_169> } | null };
854
- export type MemoryHandbookReleasesListInput = { readonly "projectId": string, readonly "cursor"?: string, readonly "limit"?: number };
855
- export type MemoryHandbookReleasesListOutput = { readonly "items": ReadonlyArray<Objects_171>, readonly "nextCursor": string | null };
856
- export type MemoryHandbookReleasesGetInput = { readonly "projectId": string, readonly "release": number };
857
- export type MemoryHandbookReleasesGetOutput = { readonly "release": number, readonly "pages": Arrays_36, readonly "itemCount": number, readonly "itemHighWater": number, readonly "requiresAck": boolean, readonly "restoredFromRelease": number | null, readonly "sourceExperience": Union_57, readonly "publishedBy": Union_56, readonly "publishedAt": string, readonly "items": ReadonlyArray<{ readonly "itemNumber": number, readonly "pageKind": "handbook_decisions" | "handbook_rules" | "handbook_progress" }> };
858
- export type MemoryHandbookPublishInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "expectedRelease": number, readonly "pages": ReadonlyArray<{ readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly "baseRevision": number | null, readonly "title"?: string, readonly "body": string, readonly "changeSummary"?: string }>, readonly "requireAck"?: boolean, readonly "sourceExperience"?: { readonly "experienceId": string, readonly "revision": number } };
859
- export type MemoryHandbookPublishOutput = { readonly "sequence": number, readonly "result": Objects_173, readonly "replayed"?: boolean };
860
- export type MemoryHandbookRevertInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "expectedRelease": number, readonly "toRelease": number, readonly "requireAck"?: boolean };
861
- export type MemoryHandbookRevertOutput = { readonly "sequence": number, readonly "result": Objects_173, readonly "replayed"?: boolean };
862
- export type WorkRemoteAgentPendingGetInput = { readonly "projectId": string, readonly "principalId"?: string, readonly "memberId"?: string };
863
- export type WorkRemoteAgentPendingGetOutput = { readonly "batchId": string, readonly "threadWakesUnavailable"?: true, readonly "threadBatchId"?: string, readonly "snapshotSequence": number, readonly "work": { readonly "count": number, readonly "truncated": boolean, readonly "items": ReadonlyArray<{ readonly "workItemId": string, readonly "blocked": boolean, readonly "groupId"?: string, readonly "round"?: number, readonly "memberId"?: string }> }, readonly "wakes": { readonly "count": number, readonly "truncated": boolean, readonly "items": ReadonlyArray<{ readonly "wakeId": string, readonly "reason": string, readonly "memberId"?: string, readonly "pausedThreads"?: ReadonlyArray<string>, readonly "targetThreadId"?: string, readonly "targetKey"?: string, readonly "groupId"?: string, readonly "groupWorkLineId"?: string }> }, readonly "machineTasks"?: { readonly "count": number, readonly "truncated": boolean, readonly "items": ReadonlyArray<{ readonly "workItemId": string, readonly "actionId": string, readonly "input"?: { readonly "projectTask"?: Objects_174, readonly "instanceId"?: string, readonly "variant"?: string, readonly "targetVersion"?: string, readonly "command"?: string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "timeoutSeconds"?: number, readonly "minutes"?: number }, readonly "status": "queued" | "running", readonly "autoApproved"?: true, readonly "accountOriginEnvironmentId"?: string, readonly "rememberProject"?: boolean, readonly "approval"?: string }> } };
864
- export type WorkStatesListInput = { readonly "projectId": string, readonly "includeRemoved"?: boolean };
865
- export type WorkStatesListOutput = { readonly "states": ReadonlyArray<{ readonly "stateId": string, readonly "name": string, readonly "description": string, readonly "color": string, readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly "sequence": number, readonly "isDefault": boolean, readonly "defaultKey"?: "backlog" | "todo" | "in-progress" | "done" | "cancelled" | undefined, readonly "removedAt"?: string }>, readonly "snapshotSequence": number };
866
- export type WorkItemsListInput = { readonly "projectId": string, readonly "stateIds"?: ReadonlyArray<string>, readonly "stateGroups"?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">, readonly "assignees"?: ReadonlyArray<Union_58 | "me" | "none">, readonly "workLineIds"?: ReadonlyArray<"none" | string>, readonly "parentIds"?: ReadonlyArray<string | "none">, readonly "priorities"?: ReadonlyArray<"urgent" | "high" | "medium" | "low" | "none">, readonly "labelIds"?: ReadonlyArray<string>, readonly "archived"?: "exclude" | "include" | "only", readonly "orderBy"?: "created" | "updated" | "priority", readonly "cursor"?: string | null, readonly "limit"?: number };
867
- export type WorkItemsListOutput = { readonly "items": ReadonlyArray<{ readonly "workItemId": string, readonly "projectId": string, readonly "sequenceId": number, readonly "title": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "state": Objects_177, readonly "priority": "urgent" | "high" | "medium" | "low" | "none", readonly "assignees": Arrays_37, readonly "labelIds": Arrays_38, readonly "parentId": string | null, readonly "startDate": string | null, readonly "targetDate": string | null, readonly "sortOrder": number, readonly "workLineId"?: string, readonly "machineTask"?: Objects_178, readonly "completedAt": string | null, readonly "archivedAt": string | null, readonly "version": number, readonly "revision": number, readonly "blockedBy": Arrays_39, readonly "blockedByTotal": number, readonly "childCounts": Objects_184, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
868
- export type WorkItemsGetInput = { readonly "projectId": string, readonly "textOffset"?: number, readonly "textLimit"?: number, readonly "expectedRevision"?: number, readonly "workItemIds": ReadonlyArray<string> } | { readonly "projectId": string, readonly "textOffset"?: number, readonly "textLimit"?: number, readonly "expectedRevision"?: number, readonly "sequenceIds": ReadonlyArray<number> };
869
- export type WorkItemsGetOutput = { readonly "items": ReadonlyArray<{ readonly "workItemId": string, readonly "projectId": string, readonly "sequenceId": number, readonly "title": string | null, readonly "bodyState": "present" | "erased" | "unavailable", readonly "state": Objects_177, readonly "priority": "urgent" | "high" | "medium" | "low" | "none", readonly "assignees": Arrays_37, readonly "labelIds": Arrays_38, readonly "parentId": string | null, readonly "startDate": string | null, readonly "targetDate": string | null, readonly "sortOrder": number, readonly "workLineId"?: string, readonly "machineTask"?: Objects_178, readonly "completedAt": string | null, readonly "archivedAt": string | null, readonly "version": number, readonly "revision": number, readonly "blockedBy": Arrays_39, readonly "blockedByTotal": number, readonly "childCounts": Objects_184, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string, readonly "description": string | null, readonly "descriptionWindow"?: Objects_59 }>, readonly "missingWorkItemIds": ReadonlyArray<string>, readonly "missingSequenceIds": ReadonlyArray<number>, readonly "snapshotSequence": number };
870
- export type WorkRelationsListInput = { readonly "projectId": string, readonly "workItemId": string, readonly "types"?: ReadonlyArray<"blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements">, readonly "otherEnd"?: "open", readonly "cursor"?: string | null, readonly "limit"?: number };
871
- export type WorkRelationsListOutput = { readonly "items": ReadonlyArray<{ readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly "workItemId": string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
872
- export type WorkCommentsListInput = { readonly "projectId": string, readonly "workItemId": string, readonly "parentId"?: string, readonly "order"?: "oldest" | "newest", readonly "cursor"?: string | null, readonly "limit"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number } | { readonly "projectId": string, readonly "mentions": "me", readonly "cursor"?: string | null, readonly "limit"?: number, readonly "textOffset"?: number, readonly "textLimit"?: number };
873
- export type WorkCommentsListOutput = { readonly "items": ReadonlyArray<Objects_185>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
874
- export type WorkCommentsGetInput = { readonly "projectId": string, readonly "commentId": string, readonly "textOffset"?: number, readonly "textLimit"?: number };
875
- export type WorkCommentsGetOutput = { readonly "comment": Objects_185, readonly "snapshotSequence": number };
876
- export type WorkHistoryListInput = { readonly "projectId": string, readonly "workItemId"?: string, readonly "workLineId"?: string, readonly "afterSequence"?: number, readonly "order"?: "oldest" | "newest", readonly "cursor"?: string | null, readonly "limit"?: number };
877
- export type WorkHistoryListOutput = { readonly "items": ReadonlyArray<{ readonly "sequence": number, readonly "workItemId": string | null, readonly "actor": Union_56, readonly "viaPlugin"?: string, readonly "at": string, readonly "target": { readonly "kind": "item" | "comment" | "state" | "label" | "relation" | "work-line" | "member", readonly "id": string }, readonly "verb": "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped" | "dispatch-decided" | "offline-rejected" | "imported" | "import-diverged" | "delivered", readonly "changes": ReadonlyArray<{ readonly "field": "title" | "description" | "body", readonly "oldRevision": number | null, readonly "newRevision": number | null } | { readonly "field": "state", readonly "old": Objects_186 | null, readonly "new": Objects_186 | null } | { readonly "field": "assignees", readonly "old": ReadonlyArray<Union_59>, readonly "new": ReadonlyArray<Union_59> } | { readonly "field": "mentions", readonly "old": ReadonlyArray<Union_60>, readonly "new": ReadonlyArray<Union_60> } | { readonly "field": "completedAt", readonly "old": string | null, readonly "new": string | null } | { readonly "field": "workLine", readonly "old": string | null, readonly "new": string | null } | { readonly "field": "parent", readonly "old": string | null, readonly "new": string | null } | { readonly "field": "parent-start", readonly "byChild": string } | { readonly "field": "name", readonly "old": string | null, readonly "new": string } | { readonly "field": "lead", readonly "old": string | null, readonly "new": string | null } | { readonly "field": "members", readonly "added": ReadonlyArray<string>, readonly "removed": ReadonlyArray<string> } | { readonly "field": "priority", readonly "old": "urgent" | "high" | "medium" | "low" | "none", readonly "new": "urgent" | "high" | "medium" | "low" | "none" } | { readonly "field": "labels", readonly "added": ReadonlyArray<string>, readonly "removed": ReadonlyArray<string> } | { readonly "field": "member", readonly "memberId": string } | { readonly "field": "note", readonly "text": string } | { readonly "field": "dispatch", readonly "environmentId": string, readonly "outcome": "thread-opened" | "woken" | "skipped", readonly "reason"?: "busy" | "project-not-ready" | "thread-unavailable" | "member-not-ready" | "binding-changed", readonly "detail"?: "no-model" | "no-workspace", readonly "threadId"?: string, readonly "memberId"?: string } | { readonly "field": "offline-rejection", readonly "capabilityId": string, readonly "operationId": string, readonly "sourceEnvironmentId": string, readonly "reason": string, readonly "input": string } | { readonly "field": "import", readonly "importId": string, readonly "sourceEnvironmentId": string, readonly "sourceSequenceId": number } | { readonly "field": "delivery", readonly "postId": string, readonly "files": ReadonlyArray<string> }> }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
878
- export type WorkItemsCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId"?: string, readonly "title": string, readonly "description"?: string, readonly "stateId"?: string, readonly "assignees"?: ReadonlyArray<Union_58>, readonly "workLineId"?: string, readonly "parentId"?: string, readonly "priority"?: "urgent" | "high" | "medium" | "low" | "none", readonly "labelIds"?: ReadonlyArray<string> };
879
- export type WorkItemsCreateOutput = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "sequenceId": number, readonly "version": number, readonly "revision": number }, readonly "replayed"?: boolean };
880
- export type WorkItemsUpdateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId": string, readonly "expectedVersion": number, readonly "title"?: string, readonly "description"?: string, readonly "stateId"?: string, readonly "assignees"?: ReadonlyArray<Union_58>, readonly "workLineId"?: string | null, readonly "parentId"?: string | null, readonly "priority"?: "urgent" | "high" | "medium" | "low" | "none", readonly "labelIds"?: ReadonlyArray<string> };
881
- export type WorkItemsUpdateOutput = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "version": number, readonly "revision": number }, readonly "replayed"?: boolean } | Objects_166;
882
- export type WorkItemsClaimInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId": string, readonly "expectedVersion": number, readonly "startStateId"?: string };
883
- export type WorkItemsClaimOutput = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "version": number }, readonly "replayed"?: boolean };
884
- export type WorkRelationsAddInput = Objects_187;
885
- export type WorkRelationsAddOutput = { readonly "sequence": number, readonly "result": Objects_188, readonly "replayed"?: boolean };
886
- export type WorkRelationsRemoveInput = Objects_187;
887
- export type WorkRelationsRemoveOutput = { readonly "sequence": number, readonly "result": Objects_188, readonly "replayed"?: boolean };
888
- export type WorkLinesListInput = { readonly "projectId": string, readonly "includeArchived"?: boolean, readonly "memberId"?: string, readonly "threadId"?: string, readonly "cursor"?: string | null, readonly "limit"?: number };
889
- export type WorkLinesListOutput = { readonly "items": ReadonlyArray<Objects_189>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
890
- export type WorkLinesGetInput = { readonly "projectId": string, readonly "workLineId": string };
891
- export type WorkLinesGetOutput = { readonly "line": Objects_189, readonly "snapshotSequence": number };
892
- export type WorkLinesCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workLineId"?: string, readonly "name": string, readonly "leadMemberId"?: string, readonly "members"?: ReadonlyArray<string>, readonly "threadId"?: string };
893
- export type WorkLinesCreateOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "version": number }, readonly "replayed"?: boolean };
894
- export type WorkLinesUpdateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workLineId": string, readonly "expectedVersion": number, readonly "name"?: string, readonly "leadMemberId"?: string | null, readonly "addMemberIds"?: ReadonlyArray<string>, readonly "removeMemberIds"?: ReadonlyArray<string> };
895
- export type WorkLinesUpdateOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "version": number }, readonly "replayed"?: boolean };
896
- export type WorkLinesArchiveInput = Objects_190;
897
- export type WorkLinesArchiveOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "version": number }, readonly "replayed"?: boolean };
898
- export type WorkLinesRestoreInput = Objects_190;
899
- export type WorkLinesRestoreOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "version": number }, readonly "replayed"?: boolean };
900
- export type WorkLinesPauseInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workLineId": string, readonly "memberId"?: string, readonly "reason"?: string };
901
- export type WorkLinesPauseOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "memberId"?: string }, readonly "replayed"?: boolean };
902
- export type WorkLinesResumeInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workLineId": string, readonly "memberId"?: string };
903
- export type WorkLinesResumeOutput = { readonly "sequence": number, readonly "result": { readonly "workLineId": string, readonly "memberId"?: string }, readonly "replayed"?: boolean };
904
- export type WorkItemsArchiveInput = Objects_191;
905
- export type WorkItemsArchiveOutput = Objects_192;
906
- export type WorkItemsUnarchiveInput = Objects_191;
907
- export type WorkItemsUnarchiveOutput = Objects_192;
908
- export type WorkLabelsListInput = { readonly "projectId": string, readonly "includeRemoved"?: boolean, readonly "cursor"?: string | null, readonly "limit"?: number };
909
- export type WorkLabelsListOutput = { readonly "items": ReadonlyArray<{ readonly "labelId": string, readonly "projectId": string, readonly "name": string, readonly "color": string, readonly "removedAt": string | null, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
910
- export type WorkLabelsCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "labelId"?: string, readonly "name": string, readonly "color": string };
911
- export type WorkLabelsCreateOutput = { readonly "sequence": number, readonly "result": Objects_193, readonly "replayed"?: boolean };
912
- export type WorkLabelsUpdateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "labelId": string, readonly "name"?: string, readonly "color"?: string };
913
- export type WorkLabelsUpdateOutput = { readonly "sequence": number, readonly "result": Objects_193, readonly "replayed"?: boolean };
914
- export type WorkLabelsRemoveInput = Objects_194;
915
- export type WorkLabelsRemoveOutput = Objects_195;
916
- export type WorkLabelsRestoreInput = Objects_194;
917
- export type WorkLabelsRestoreOutput = Objects_195;
918
- export type WorkStatesCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "stateId"?: string, readonly "name": string, readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly "color": string, readonly "description"?: string, readonly "sequence"?: number };
919
- export type WorkStatesCreateOutput = { readonly "sequence": number, readonly "result": Objects_196, readonly "replayed"?: boolean };
920
- export type WorkStatesUpdateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "stateId": string, readonly "name"?: string, readonly "color"?: string, readonly "description"?: string, readonly "sequence"?: number };
921
- export type WorkStatesUpdateOutput = { readonly "sequence": number, readonly "result": Objects_196, readonly "replayed"?: boolean };
922
- export type WorkStatesRemoveInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "stateId": string, readonly "replacementStateId"?: string };
923
- export type WorkStatesRemoveOutput = { readonly "sequence": number, readonly "result": Objects_196, readonly "replayed"?: boolean };
924
- export type WorkStatesRestoreInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "stateId": string };
925
- export type WorkStatesRestoreOutput = { readonly "sequence": number, readonly "result": Objects_196, readonly "replayed"?: boolean };
926
- export type MembersListInput = { readonly "projectId": string, readonly "includeRemoved"?: boolean, readonly "cursor"?: string | null, readonly "limit"?: number };
927
- export type MembersListOutput = { readonly "items": ReadonlyArray<{ readonly "memberId": string, readonly "projectId": string, readonly "kind": "human" | "agent", readonly "name": string, readonly "title": string, readonly "responsibility": string, readonly "avatar": Union_61, readonly "identity": Union_62, readonly "agent": Union_63, readonly "workInstructionsRevision": number | null, readonly "version": number, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string, readonly "removedAt": string | null, readonly "trial"?: Objects_197 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
928
- export type MembersGetInput = { readonly "projectId": string, readonly "memberId": string, readonly "textOffset"?: number, readonly "textLimit"?: number, readonly "expectedRevision"?: number };
929
- export type MembersGetOutput = { readonly "member": { readonly "memberId": string, readonly "projectId": string, readonly "kind": "human" | "agent", readonly "name": string, readonly "title": string, readonly "responsibility": string, readonly "avatar": Union_61, readonly "identity": Union_62, readonly "agent": Union_63, readonly "workInstructionsRevision": number | null, readonly "version": number, readonly "createdBy": Union_56, readonly "createdAt": string, readonly "updatedAt": string, readonly "removedAt": string | null, readonly "trial"?: Objects_197, readonly "workInstructions": string | null, readonly "workInstructionsWindow"?: Objects_59 }, readonly "snapshotSequence": number };
930
- export type MembersCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "memberId"?: string, readonly "kind": "human" | "agent", readonly "name": string, readonly "title"?: string, readonly "responsibility"?: string, readonly "avatar"?: { readonly "pattern": string, readonly "color": string }, readonly "workInstructions"?: string, readonly "identity"?: { readonly "kind": "human", readonly "principal": Union_38 }, readonly "agent"?: { readonly "environmentId": string, readonly "modelSelection": Objects_113, readonly "threadId"?: string } };
931
- export type MembersCreateOutput = { readonly "sequence": number, readonly "result": { readonly "memberId": string, readonly "version": number, readonly "workInstructionsRevision"?: number }, readonly "replayed"?: boolean };
932
- export type MembersUpdateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "memberId": string, readonly "expectedVersion": number, readonly "name"?: string, readonly "title"?: string, readonly "responsibility"?: string, readonly "avatar"?: Objects_198 | null, readonly "workInstructions"?: string, readonly "identity"?: Objects_175 | null, readonly "agent"?: { readonly "environmentId": string, readonly "modelSelection": Objects_113, readonly "threadId"?: string } };
933
- export type MembersUpdateOutput = { readonly "sequence": number, readonly "result": { readonly "memberId": string, readonly "version": number, readonly "workInstructionsRevision"?: number }, readonly "replayed"?: boolean };
934
- export type MembersRemoveInput = Objects_199;
935
- export type MembersRemoveOutput = { readonly "sequence": number, readonly "result": { readonly "memberId": string, readonly "version": number }, readonly "replayed"?: boolean };
936
- export type MembersRestoreInput = Objects_199;
937
- export type MembersRestoreOutput = { readonly "sequence": number, readonly "result": { readonly "memberId": string, readonly "version": number }, readonly "replayed"?: boolean };
938
- export type MembersTrialRecordInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "memberId": string, readonly "outcome": "passed" | "failed" | "skipped" | "not-run", readonly "summary"?: string };
939
- export type MembersTrialRecordOutput = { readonly "sequence": number, readonly "result": { readonly "memberId": string }, readonly "replayed"?: boolean };
940
- export type MembersRuntimeListInput = Objects_200;
941
- export type MembersRuntimeListOutput = Objects_201;
942
- export type MembersRuntimeSubscribeInput = Objects_200;
943
- export type MembersRuntimeSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Objects_201 } | Objects_63;
944
- export type WorkMachineTasksCreateInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId"?: string, readonly "environmentId": string, readonly "actionId": string, readonly "input"?: { readonly "projectTask"?: Objects_21, readonly "instanceId"?: string, readonly "variant"?: string, readonly "targetVersion"?: string, readonly "command"?: string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "timeoutSeconds"?: number, readonly "minutes"?: number }, readonly "title"?: string, readonly "approval"?: string };
945
- export type WorkMachineTasksCreateOutput = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "sequenceId": number, readonly "status": "awaiting-approval" | "queued", readonly "approvalReason"?: "remote-caller" | "account-connection-inactive" | "other-account" }, readonly "replayed"?: boolean };
946
- export type WorkMachineTasksRunInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId"?: string, readonly "machine": string, readonly "task"?: string, readonly "variant"?: string, readonly "command"?: string, readonly "args"?: Arrays_3, readonly "cwd"?: string, readonly "timeoutSeconds"?: number, readonly "waitSeconds"?: number };
947
- export type WorkMachineTasksRunOutput = { readonly "workItemId": string, readonly "sequenceId": number, readonly "finished": boolean, readonly "machineTask": Objects_202 };
948
- export type WorkMachineTasksGetInput = { readonly "projectId": string, readonly "workItemId": string };
949
- export type WorkMachineTasksGetOutput = { readonly "workItemId": string, readonly "sequenceId": number, readonly "state": { readonly "stateId": string, readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled" }, readonly "version": number, readonly "machineTask": Objects_202, readonly "updatedAt": string };
950
- export type WorkMachineTasksRespondInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "workItemId": string, readonly "decision": "approve" | "decline", readonly "rememberProject"?: boolean, readonly "approval"?: string };
951
- export type WorkMachineTasksRespondOutput = { readonly "sequence": number, readonly "result": { readonly "workItemId": string, readonly "version": number, readonly "logCommentId"?: string, readonly "logPostId"?: string }, readonly "replayed"?: boolean };
952
- export type ThreadsInteractionModeSetInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "interactionMode": "default" | "plan" };
953
- export type ThreadsInteractionModeSetOutput = Objects_203;
954
- export type ThreadsNativeModeSetInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "nativeModeId": string };
955
- export type ThreadsNativeModeSetOutput = Objects_203;
956
- export type ThreadsRuntimeModeSetInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access" };
957
- export type ThreadsRuntimeModeSetOutput = Objects_203;
958
- export type ThreadsContextCompactInput = { readonly "requestId"?: string, readonly "threadId": string };
959
- export type ThreadsContextCompactOutput = Objects_203;
960
- export type PluginsSelfdevPromoteInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "pluginId": string };
961
- export type PluginsSelfdevPromoteOutput = Objects_203;
962
- export type PluginsSelfdevStopInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "pluginId": string };
963
- export type PluginsSelfdevStopOutput = Objects_203;
964
- export type ThreadsShellCommandRecordInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "command": string, readonly "terminalId": string, readonly "cwd": string };
965
- export type ThreadsShellCommandRecordOutput = Objects_203;
966
- export type ThreadsTurnIntentsEditInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "intentId": string, readonly "expectedRevision": number, readonly "message": { readonly "text": string, readonly "attachments": ReadonlyArray<{ readonly "type": "image", readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "dataUrl": string, readonly "source"?: Objects_204 } | { readonly "type": "file", readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "dataUrl": string } | { readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Objects_204 | Objects_206 } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: { readonly "_tag": "pasted-text" } | Objects_206 | { readonly "_tag": "thread-reference", readonly "environmentId": string, readonly "threadId": string } }> } };
967
- export type ThreadsTurnIntentsEditOutput = { readonly "sequence": number, readonly "replayed"?: boolean, readonly "status": "accepted" | "noop" };
968
- export type ThreadsTurnIntentsSetPausedInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "intentId": string, readonly "paused": boolean };
969
- export type ThreadsTurnIntentsSetPausedOutput = Objects_203;
970
- export type ThreadsTurnIntentsReorderInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "intentId": string, readonly "beforeIntentId": string | null };
971
- export type ThreadsTurnIntentsReorderOutput = Objects_203;
972
- export type ThreadsTurnQueuePauseInput = { readonly "requestId"?: string, readonly "threadId": string };
973
- export type ThreadsTurnQueuePauseOutput = Objects_203;
974
- export type ThreadsUserInputDismissInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "userInputRequestId": string };
975
- export type ThreadsUserInputDismissOutput = Objects_203;
976
- export type ThreadsDecisionsRespondInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "decisionRequestId": string, readonly "machineTaskApproval"?: string, readonly "optionId": string, readonly "reason"?: string };
977
- export type ThreadsDecisionsRespondOutput = Objects_203;
978
- export type ThreadsSnoozeInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "snoozedUntil": string };
979
- export type ThreadsSnoozeOutput = Objects_203;
980
- export type ThreadsUnsnoozeInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "reason": "user" };
981
- export type ThreadsUnsnoozeOutput = Objects_203;
982
- export type ThreadsReorderInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "orderKey": string };
983
- export type ThreadsReorderOutput = Objects_203;
984
- export type ThreadsDeleteInput = { readonly "requestId"?: string, readonly "threadId": string };
985
- export type ThreadsDeleteOutput = Objects_203;
986
- export type ThreadsArchiveInput = { readonly "requestId"?: string, readonly "threadId": string };
987
- export type ThreadsArchiveOutput = Objects_203;
988
- export type ThreadsUnarchiveInput = { readonly "requestId"?: string, readonly "threadId": string };
989
- export type ThreadsUnarchiveOutput = Objects_203;
990
- export type ThreadsSettleInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "discardQueued"?: boolean };
991
- export type ThreadsSettleOutput = Objects_203;
992
- export type ThreadsUnsettleInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "reason": "user" };
993
- export type ThreadsUnsettleOutput = Objects_203;
994
- export type ThreadsCreateInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_113, readonly "executionSelection"?: { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": Arrays_8, readonly "expectedRevisions": Objects_29 }, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string, readonly "folderIds"?: ReadonlyArray<string>, readonly "memberId"?: string, readonly "origin"?: { readonly "parentThreadId": string, readonly "delegationDepth": number, readonly "requestedBy": "agent" | "continuation" | "person", readonly "notificationPolicy"?: "wake" | "activity-only" }, readonly "presetId"?: string };
995
- export type ThreadsCreateOutput = Objects_203;
996
- export type ThreadsForkInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "sourceThreadId": string, readonly "sourceMessageId": string, readonly "startFolderId"?: string, readonly "folderIds"?: ReadonlyArray<string> };
997
- export type ThreadsForkOutput = Objects_203;
998
- export type ThreadsImportInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_113, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string, readonly "folderIds"?: ReadonlyArray<string>, readonly "messages": ReadonlyArray<{ readonly "rewrite"?: { readonly "original": string, readonly "steps": ReadonlyArray<{ readonly "pluginId": string, readonly "via": "before-send" | "slash-command", readonly "command"?: string }> }, readonly "messageId": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "modelSelection"?: { readonly "provider"?: unknown, readonly "instanceId"?: unknown, readonly "model": unknown, readonly "options"?: unknown }, readonly "source"?: { readonly "kind": "native-session", readonly "provider": string, readonly "sessionId": string, readonly "messageId": string, readonly "turnId"?: string, readonly "order": number } }>, readonly "activities"?: ReadonlyArray<{ readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "payload": unknown, readonly "turnId": string | null, readonly "sequence"?: number, readonly "createdAt": string }> };
999
- export type ThreadsImportOutput = Objects_203;
1000
- export type ThreadsExternalMessagesAppendInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "messages": ReadonlyArray<{ readonly "rewrite"?: { readonly "original": string, readonly "steps": ReadonlyArray<{ readonly "pluginId": string, readonly "via": "before-send" | "slash-command", readonly "command"?: string }> }, readonly "messageId": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "modelSelection"?: { readonly "provider"?: unknown, readonly "instanceId"?: unknown, readonly "model": unknown, readonly "options"?: unknown }, readonly "source"?: { readonly "kind": "native-session", readonly "provider": string, readonly "sessionId": string, readonly "messageId": string, readonly "turnId"?: string, readonly "order": number } }>, readonly "activities"?: ReadonlyArray<{ readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "payload": unknown, readonly "turnId": string | null, readonly "sequence"?: number, readonly "createdAt": string }> };
1001
- export type ThreadsExternalMessagesAppendOutput = Objects_203;
1002
- export type ThreadsUpdateInput = { readonly "threadId": string, readonly "requestId"?: string, readonly "title"?: string, readonly "regenerateTitle"?: true, readonly "modelSelection"?: { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_44 }, readonly "executionSelection"?: Objects_207 | null, readonly "branch"?: string | null, readonly "expectedBranch"?: string | null, readonly "worktreePath"?: string | null, readonly "linkedPullRequest"?: Objects_208 | null, readonly "presetId"?: string | null, readonly "folderIds"?: ReadonlyArray<string> };
1003
- export type ThreadsUpdateOutput = Objects_203;
1004
- export type ThreadsTurnsStartInput = { readonly "slashCommand"?: { readonly "pluginId": string, readonly "name": string }, readonly "requestId"?: string, readonly "threadId": string, readonly "message": { readonly "messageId": string, readonly "role": "user", readonly "text": string, readonly "attachments": ReadonlyArray<{ readonly "type": "image", readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "dataUrl": string, readonly "source"?: Objects_209 } | { readonly "type": "file", readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "dataUrl": string } | { readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: Objects_209 | Objects_211 } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: { readonly "_tag": "pasted-text" } | Objects_211 | { readonly "_tag": "thread-reference", readonly "environmentId": string, readonly "threadId": string } }> }, readonly "modelSelection"?: { readonly "instanceId": string, readonly "model": string, readonly "options"?: Union_44 }, readonly "titleSeed"?: string, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "bootstrap"?: { readonly "createThread"?: { readonly "projectId": string, readonly "title": string, readonly "modelSelection": { readonly "provider"?: unknown, readonly "instanceId"?: unknown, readonly "model": unknown, readonly "options"?: unknown }, readonly "executionSelection"?: { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": ReadonlyArray<{ readonly "id": string, readonly "value": string | boolean }>, readonly "expectedRevisions": { readonly "runtime": number, readonly "source": number, readonly "profile": number, readonly "endpoint"?: number } }, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "nativeModeId"?: string, readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string, readonly "folderIds"?: ReadonlyArray<string>, readonly "origin"?: { readonly "parentThreadId": string, readonly "delegationDepth": number, readonly "requestedBy": "agent" | "continuation" | "person", readonly "notificationPolicy"?: "wake" | "activity-only" }, readonly "presetId"?: string, readonly "createdBy"?: { readonly "userId": string, readonly "displayName": string }, readonly "createdAt": string }, readonly "prepareWorktree"?: { readonly "baseBranch": string, readonly "branch"?: string, readonly "startFromOrigin"?: boolean }, readonly "runSetupScript"?: boolean }, readonly "sourceProposedPlan"?: { readonly "threadId": string, readonly "planId": string }, readonly "forwardedFrom"?: { readonly "displayName": string }, readonly "intentAction"?: { readonly "kind": "steer", readonly "turnId": string, readonly "commandId": string, readonly "source": "automatic" } };
1005
- export type ThreadsTurnsStartOutput = { readonly "sequence": number, readonly "replayed"?: boolean, readonly "status": "accepted", readonly "result"?: unknown };
1006
- export type ThreadsUserInputRespondInput = { readonly "threadId": string, readonly "requestId"?: string, readonly "userInputRequestId": string, readonly "answers": { readonly [x: string]: unknown }, readonly "attachmentsByQuestionId"?: { readonly [x: string]: ReadonlyArray<{ readonly "type": "image", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: { readonly "_tag": "snap-shot", readonly "capturedAt": string, readonly "appName": string, readonly "windowTitle": string, readonly "accessibleText"?: string, readonly "accessibility"?: { readonly "format": "flat-text", readonly "text": string, readonly "truncated": boolean } | { readonly "format": "element-tree", readonly "coordinateSpace": "captured-image", readonly "imageSize": { readonly "width": number, readonly "height": number }, readonly "truncated": boolean, readonly "root": Objects_212 }, readonly "appIdentifier"?: string, readonly "appIconDataUrl"?: string } | Objects_213 } | { readonly "type": "file", readonly "id": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "source"?: { readonly "_tag": "pasted-text" } | Objects_213 | { readonly "_tag": "thread-reference", readonly "environmentId": string, readonly "threadId": string } }> } };
1007
- export type ThreadsUserInputRespondOutput = Objects_203;
1008
- export type ThreadsTurnsInterruptInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "turnId"?: string };
1009
- export type ThreadsTurnsInterruptOutput = Objects_203;
1010
- export type ThreadsSessionStopInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "onlyIfSettled"?: boolean, readonly "onlyIfNoTurnInFlight"?: boolean, readonly "reason"?: "context-change" };
1011
- export type ThreadsSessionStopOutput = Objects_203;
1012
- export type ThreadsSessionRestartInput = { readonly "requestId"?: string, readonly "threadId": string };
1013
- export type ThreadsSessionRestartOutput = { readonly "sequence": number, readonly "replayed"?: boolean, readonly "status": "accepted" | "noop", readonly "outcome"?: "completed" | "failed" | "cancelled" | "unconfirmed", readonly "detail"?: string };
380
+ export type PluginsSkillsListOutput = { readonly skills: ReadonlyArray<{ readonly name: string, readonly source: { readonly kind: "builtin" } | { readonly kind: "plugin", readonly entryId: string }, readonly description?: string, readonly summary?: { readonly [x: string]: string } }> };
381
+ export type PluginsSkillDirectorySearchInput = { readonly query: string, readonly limit?: number };
382
+ export type PluginsSkillDirectorySearchOutput = { readonly skills: ReadonlyArray<{ readonly id: string, readonly name: string, readonly skillId: string, readonly source: string, readonly repository: string | null, readonly installs: number, readonly url: string }> };
383
+ export type PluginsSkillDirectoryGetInput = { readonly repository: string, readonly skillId: string, readonly textOffset?: number, readonly textLimit?: number };
384
+ export type PluginsSkillDirectoryGetOutput = { readonly repository: string, readonly path: string, readonly skillMd: string, readonly skillMdWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly extraFiles: number, readonly name: string };
385
+ export type PluginsSkillDirectoryInstallInput = { readonly repository: string, readonly skillId: string, readonly name?: string };
386
+ export type PluginsSkillDirectoryInstallOutput = { readonly name: string, readonly path: string, readonly extraFiles: number };
387
+ export type PluginsSettingsCardsUpdateValuesInput = { readonly entryId: string, readonly values: { readonly [x: string]: unknown }, readonly revision: string };
388
+ export type PluginsSettingsCardsUpdateValuesOutput = { readonly revision: string };
389
+ export type UsageQuotaGetInput = { readonly instanceIds?: ReadonlyArray<string>, readonly refresh: boolean };
390
+ export type UsageQuotaGetOutput = { readonly contractVersion: number, readonly hostId: string, readonly instances: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly pluginId: string | null, readonly displayName: string | null, readonly support: "supported" | "notProvided" | "disabled" | "unavailable", readonly lastAttempt: { readonly at: string, readonly outcome: "available" | "missingCredentials" | "authRejected" | "customEndpoint" | "unreachable" | "unsupportedLogin" | "rateLimited", readonly retryAt: string | null } | null, readonly lastAvailable: { readonly readAt: string, readonly plan?: string, readonly accountKey?: string, readonly windows: ReadonlyArray<{ readonly id: string, readonly label: { readonly key: string, readonly values?: { readonly [x: string]: string | number } } | { readonly text: string }, readonly usedPercent: number, readonly resetsAt: string | null, readonly windowMs?: number, readonly group?: string }>, readonly balances: ReadonlyArray<{ readonly id: string, readonly label: { readonly key: string, readonly values?: { readonly [x: string]: string | number } } | { readonly text: string }, readonly remaining: number | null, readonly used: number | null, readonly limit: number | null, readonly unit: { readonly kind: "money", readonly currency: string } | { readonly kind: "credits" }, readonly resetsAt: string | null }>, readonly resetCredits?: { readonly availableCount: number } } | null, readonly inflight: boolean, readonly redeemable?: true, readonly redeeming?: true }> };
391
+ export type UsageTokensGetInput = { readonly sinceDay: string, readonly untilDay: string, readonly timeZone: string, readonly resolution?: "day" | "hour", readonly sinceTime?: string, readonly untilTime?: string };
392
+ export type UsageTokensGetOutput = { readonly contractVersion: number, readonly readAt: string, readonly timeZone: string, readonly sinceDay: string, readonly untilDay: string, readonly buckets: ReadonlyArray<{ readonly day: string, readonly hourStart?: string | undefined, readonly provider: "claude" | "codex" | "grok" | "opencode" | "dsh" | "kimi" | "pi" | "antigravity" | "zcode" | "acp", readonly model: string, readonly totals: { readonly uncachedInputTokens: number, readonly cachedInputTokens: number, readonly cacheCreationTokens: number, readonly outputTokens: number, readonly reasoningTokens: number }, readonly costUsd: number, readonly cacheSavingsUsd: number, readonly costSource: "providerReported" | "modelPriced" | "unpriced", readonly records: number, readonly unpricedRecords: number, readonly sessions: number }>, readonly sources: ReadonlyArray<{ readonly fingerprint: { readonly hostId: string, readonly provider: "claude" | "codex" | "grok" | "opencode" | "dsh" | "kimi" | "pi" | "antigravity" | "zcode" | "acp", readonly resolvedHomePath: string, readonly volumeId: string }, readonly instanceId?: string, readonly kind?: "transcript" | "orchestration", readonly status: "ok" | "missing" | "partial" | "failed", readonly scannedFiles: number, readonly skippedFiles: number, readonly malformedRecords: number, readonly distinctSessions: number, readonly message: string | null }>, readonly pricing: { readonly status: "fresh" | "cached" | "unavailable", readonly source: string, readonly fetchedAt: string | null, readonly knownModels: number }, readonly scanDurationMs: number };
393
+ export type UsageTimeGetInput = { readonly since: string, readonly until: string };
394
+ export type UsageTimeGetOutput = { readonly readAt: string, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number, readonly projects: ReadonlyArray<{ readonly projectId: string, readonly title: string, readonly agentRunningMs: number, readonly waitingForYouMs: number, readonly approvalWaitMs: number, readonly userInputWaitMs: number }> };
395
+ export type UsageQuotaRedeemResetInput = { readonly instanceId: string, readonly requestId?: string };
396
+ export type UsageQuotaRedeemResetOutput = { readonly outcome: "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed", readonly instance: { readonly instanceId: string, readonly driver: string, readonly pluginId: string | null, readonly displayName: string | null, readonly support: "supported" | "notProvided" | "disabled" | "unavailable", readonly lastAttempt: { readonly at: string, readonly outcome: "available" | "missingCredentials" | "authRejected" | "customEndpoint" | "unreachable" | "unsupportedLogin" | "rateLimited", readonly retryAt: string | null } | null, readonly lastAvailable: { readonly readAt: string, readonly plan?: string, readonly accountKey?: string, readonly windows: ReadonlyArray<{ readonly id: string, readonly label: { readonly key: string, readonly values?: { readonly [x: string]: string | number } } | { readonly text: string }, readonly usedPercent: number, readonly resetsAt: string | null, readonly windowMs?: number, readonly group?: string }>, readonly balances: ReadonlyArray<{ readonly id: string, readonly label: { readonly key: string, readonly values?: { readonly [x: string]: string | number } } | { readonly text: string }, readonly remaining: number | null, readonly used: number | null, readonly limit: number | null, readonly unit: { readonly kind: "money", readonly currency: string } | { readonly kind: "credits" }, readonly resetsAt: string | null }>, readonly resetCredits?: { readonly availableCount: number } } | null, readonly inflight: boolean, readonly redeemable?: true, readonly redeeming?: true } };
397
+ export type WakesScheduleInput = { readonly threadId?: string, readonly delaySeconds?: number, readonly dueAt?: string, readonly note: string, readonly afterServerUpgrade?: boolean, readonly repeat?: { readonly cron: string, readonly timeZone: string }, readonly requestId?: string };
398
+ export type WakesScheduleOutput = { readonly wake: { readonly createdBy?: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null }, readonly repeat?: { readonly cron: string, readonly timeZone: string } } };
399
+ export type WakesCancelInput = { readonly wakeId: string, readonly requestId?: string };
400
+ export type WakesCancelOutput = { readonly wake: { readonly createdBy?: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null }, readonly repeat?: { readonly cron: string, readonly timeZone: string } } };
401
+ export type WakesListInput = { readonly threadId?: string, readonly state?: "scheduled" | "fired" | "cancelled" };
402
+ export type WakesListOutput = { readonly wakes: ReadonlyArray<{ readonly createdBy?: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null }, readonly repeat?: { readonly cron: string, readonly timeZone: string } }> };
403
+ export type SchedulesListInput = { readonly projectId: string };
404
+ export type SchedulesListOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
405
+ export type SchedulesRunsListInput = { readonly scheduleId: string, readonly limit?: number };
406
+ export type SchedulesRunsListOutput = { readonly runs: ReadonlyArray<{ readonly runId: string, readonly scheduleId: string, readonly projectId: string, readonly scheduledFor: string, readonly outcome: "started" | "skipped" | "failed", readonly threadId: string | null, readonly detail: string | null, readonly at: string, readonly threadStatus: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | null }> };
407
+ export type SchedulesSaveInput = { readonly scheduleId?: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace?: "project" | "worktree", readonly presetId?: string, readonly enabled?: boolean, readonly requestId?: string };
408
+ export type SchedulesSaveOutput = { readonly schedule: { readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string } };
409
+ export type SchedulesDeleteInput = { readonly scheduleId: string, readonly requestId?: string };
410
+ export type SchedulesDeleteOutput = { readonly scheduleId: string };
411
+ export type SkillsListInput = { readonly threadId?: string };
412
+ export type SkillsListOutput = { readonly skills: ReadonlyArray<{ readonly name: string, readonly description?: string, readonly origin?: { readonly layer: "wiki", readonly pageId: string, readonly revision: number } | { readonly layer: "repo", readonly rootIndex: number, readonly rootName: string } | { readonly layer: "settings" } | { readonly layer: "builtin" } | { readonly layer: "plugin", readonly entryId: string } }>, readonly shadowed?: ReadonlyArray<{ readonly name: string, readonly origin: { readonly layer: "wiki", readonly pageId: string, readonly revision: number } | { readonly layer: "repo", readonly rootIndex: number, readonly rootName: string } | { readonly layer: "settings" } | { readonly layer: "builtin" } | { readonly layer: "plugin", readonly entryId: string }, readonly by: "wiki" | "repo" | "settings" | "builtin" | "plugin" }>, readonly repoReadByCli?: true };
413
+ export type SkillsReadInput = { readonly threadId?: string, readonly name: string, readonly textOffset?: number, readonly textLimit?: number };
414
+ export type SkillsReadOutput = { readonly name: string, readonly directory: string, readonly content: string, readonly contentWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
415
+ export type MemoryExperiencesListInput = { readonly projectId: string, readonly status?: "active" | "forgotten" | "erased", readonly order?: "created" | "leastRecentlyUsed", readonly cursor?: string, readonly limit?: number };
416
+ export type MemoryExperiencesListOutput = { readonly items: ReadonlyArray<{ readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly excerpt: string | null }>, readonly nextCursor: string | null };
417
+ export type MemoryExperiencesGetInput = { readonly projectId: string, readonly experienceId: string, readonly textOffset?: number, readonly textLimit?: number };
418
+ export type MemoryExperiencesGetOutput = { readonly experienceId: string, readonly status: "active" | "forgotten" | "erased", readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly sourceThreadId: string | null, readonly sourceTurnId: string | null, readonly currentRevision: number, readonly createdAt: string, readonly updatedAt: string, readonly supersedes: ReadonlyArray<string>, readonly supersededBy?: ReadonlyArray<string>, readonly bodyState: "present" | "erased" | "unavailable", readonly usage?: { readonly searched: number, readonly read: number, readonly delivered: number, readonly lastUsedAt: string | null, readonly approximate: true }, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly forgottenAt: string | null, readonly forgottenBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null, readonly erasedAt: string | null, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
419
+ export type MemoryExperiencesHistoryInput = { readonly projectId: string, readonly experienceId: string, readonly cursor?: string, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number };
420
+ export type MemoryExperiencesHistoryOutput = { readonly items: ReadonlyArray<{ readonly experienceId: string, readonly revision: number, readonly baseRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
421
+ export type MemoryRevisionsGetInput = { readonly projectId: string, readonly experienceId: string, readonly revision: number, readonly textOffset?: number, readonly textLimit?: number };
422
+ export type MemoryRevisionsGetOutput = { readonly experienceId: string, readonly revision: number, readonly baseRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title?: string, readonly applicability?: string, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
423
+ export type MemorySearchInput = { readonly projectId: string, readonly text: string, readonly mode?: "recall" | "keyword", readonly limit?: number };
424
+ export type MemorySearchOutput = { readonly status: "ok" | "unavailable", readonly hits: ReadonlyArray<{ readonly subject: { readonly kind: "experience", readonly id: string } | { readonly kind: "page", readonly id: string }, readonly revision: number, readonly title?: string, readonly headingPath: string, readonly snippet: string, readonly score: number, readonly unmatched?: true }>, readonly code?: "fts_unavailable" | "index_damaged" | "not_initialized" };
425
+ export type MemoryExperiencesRecordInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId?: string, readonly body: string, readonly title?: string, readonly applicability?: string, readonly sourceThreadId?: string, readonly sourceTurnId?: string, readonly supersedes?: ReadonlyArray<string> };
426
+ export type MemoryExperiencesRecordOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly revision: number }, readonly replayed?: boolean } | { readonly _tag: "queued", readonly outboxId: string, readonly homeEnvironmentId: string };
427
+ export type MemoryExperiencesReviseInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string, readonly baseRevision: number, readonly body: string, readonly title?: string, readonly applicability?: string };
428
+ export type MemoryExperiencesReviseOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly revision: number }, readonly replayed?: boolean };
429
+ export type MemoryExperiencesForgetInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string };
430
+ export type MemoryExperiencesForgetOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly status: "active" | "forgotten" }, readonly replayed?: boolean };
431
+ export type MemoryExperiencesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string };
432
+ export type MemoryExperiencesRestoreOutput = { readonly sequence: number, readonly result: { readonly experienceId: string, readonly status: "active" | "forgotten" }, readonly replayed?: boolean };
433
+ export type MemoryExperiencesEraseInput = { readonly projectId: string, readonly requestId?: string, readonly experienceId: string };
434
+ export type MemoryExperiencesEraseOutput = { readonly sequence: number, readonly result: { readonly experienceId: string }, readonly replayed?: boolean };
435
+ export type MemoryPagesListInput = { readonly projectId: string, readonly status?: "active" | "erased", readonly cursor?: string, readonly limit?: number };
436
+ export type MemoryPagesListOutput = { readonly items: ReadonlyArray<{ readonly pageId: string, readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly parentPageId: string | null, readonly currentRevision: number, readonly locked: boolean, readonly archivedAt: string | null, readonly erasedAt: string | null, readonly createdAt: string, readonly revisedAt: string, readonly updatedAt: string, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly excerpt: string | null }>, readonly nextCursor: string | null };
437
+ export type MemoryPagesGetInput = { readonly projectId: string, readonly pageId: string, readonly textOffset?: number, readonly textLimit?: number };
438
+ export type MemoryPagesGetOutput = { readonly pageId: string, readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill", readonly parentPageId: string | null, readonly currentRevision: number, readonly locked: boolean, readonly archivedAt: string | null, readonly erasedAt: string | null, readonly createdAt: string, readonly revisedAt: string, readonly updatedAt: string, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly erasedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" } | null };
439
+ export type MemoryPagesHistoryInput = { readonly projectId: string, readonly pageId: string, readonly cursor?: string, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number };
440
+ export type MemoryPagesHistoryOutput = { readonly items: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null };
441
+ export type MemoryPageRevisionsGetInput = { readonly projectId: string, readonly pageId: string, readonly revision: number, readonly textOffset?: number, readonly textLimit?: number };
442
+ export type MemoryPageRevisionsGetOutput = { readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } };
443
+ export type MemoryPagesCreateInput = { readonly projectId: string, readonly requestId?: string, readonly pageId?: string, readonly kind: "doc" | "skill", readonly parentPageId?: string, readonly title: string, readonly body: string, readonly changeSummary?: string };
444
+ export type MemoryPagesCreateOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
445
+ export type MemoryPagesEditInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string, readonly baseRevision: number, readonly title?: string, readonly body: string, readonly changeSummary?: string };
446
+ export type MemoryPagesEditOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
447
+ export type MemoryPagesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string, readonly baseRevision: number, readonly fromRevision: number };
448
+ export type MemoryPagesRestoreOutput = { readonly sequence: number, readonly result: { readonly pageId: string, readonly revision: number }, readonly replayed?: boolean };
449
+ export type MemoryPagesEraseInput = { readonly projectId: string, readonly requestId?: string, readonly pageId: string };
450
+ export type MemoryPagesEraseOutput = { readonly sequence: number, readonly result: { readonly pageId: string }, readonly replayed?: boolean };
451
+ export type ThreadsArtifactsListInput = { readonly threadId: string, readonly cursor?: string | null, readonly limit?: number };
452
+ export type ThreadsArtifactsListOutput = { readonly items: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly title?: string | undefined, readonly note?: string | undefined, readonly sourcePath: string, readonly turnId: string | null, readonly messageId: string, readonly deliveredAt: string, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly nextCursor: string | null };
453
+ export type ProjectsArtifactsListInput = { readonly projectId: string, readonly workItemId?: string, readonly cursor?: string | null, readonly limit?: number };
454
+ export type ProjectsArtifactsListOutput = { readonly items: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly title?: string | undefined, readonly note?: string | undefined, readonly fileCount?: number | undefined, readonly deliveredAt: string, readonly postId?: string, readonly deliverer?: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly environmentId?: string, readonly threadId?: string, readonly remoteThreadId?: string, readonly threadTitle?: string, readonly threadDeleted: boolean, readonly workItemId?: string, readonly workItemSequenceId?: number, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused", readonly missing: boolean }>, readonly nextCursor: string | null };
455
+ export type ThreadsArtifactsDeliverInput = { readonly threadId: string, readonly requestId: string, readonly workItemId?: string, readonly path?: string, readonly files?: ReadonlyArray<{ readonly path: string, readonly title?: string, readonly note?: string }>, readonly title?: string, readonly note?: string };
456
+ export type ThreadsArtifactsDeliverOutput = { readonly sequence: number, readonly result: { readonly deliveryId?: string, readonly files: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly sizeBytes: number, readonly alreadyDelivered: boolean, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }> }, readonly replayed?: boolean };
457
+ export type MemoryHandbookGetInput = { readonly projectId: string, readonly textOffset?: number, readonly textLimit?: number };
458
+ export type MemoryHandbookGetOutput = { readonly head: { readonly current: { readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string }, readonly pages: ReadonlyArray<{ readonly pageId: string, readonly revision: number, readonly baseRevision: number | null, readonly restoredFromRevision: number | null, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly title: string | null, readonly changeSummary: string | null, readonly body: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }> } | null };
459
+ export type MemoryHandbookReleasesListInput = { readonly projectId: string, readonly cursor?: string, readonly limit?: number };
460
+ export type MemoryHandbookReleasesListOutput = { readonly items: ReadonlyArray<{ readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string }>, readonly nextCursor: string | null };
461
+ export type MemoryHandbookReleasesGetInput = { readonly projectId: string, readonly release: number };
462
+ export type MemoryHandbookReleasesGetOutput = { readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }>, readonly itemCount: number, readonly itemHighWater: number, readonly requiresAck: boolean, readonly restoredFromRelease: number | null, readonly sourceExperience: { readonly experienceId: string, readonly revision: number } | null, readonly publishedBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly publishedAt: string, readonly items: ReadonlyArray<{ readonly itemNumber: number, readonly pageKind: "handbook_decisions" | "handbook_rules" | "handbook_progress" }> };
463
+ export type MemoryHandbookPublishInput = { readonly projectId: string, readonly requestId?: string, readonly expectedRelease: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly baseRevision: number | null, readonly title?: string, readonly body: string, readonly changeSummary?: string }>, readonly requireAck?: boolean, readonly sourceExperience?: { readonly experienceId: string, readonly revision: number } };
464
+ export type MemoryHandbookPublishOutput = { readonly sequence: number, readonly result: { readonly changed: boolean, readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }> }, readonly replayed?: boolean };
465
+ export type MemoryHandbookRevertInput = { readonly projectId: string, readonly requestId?: string, readonly expectedRelease: number, readonly toRelease: number, readonly requireAck?: boolean };
466
+ export type MemoryHandbookRevertOutput = { readonly sequence: number, readonly result: { readonly changed: boolean, readonly release: number, readonly pages: ReadonlyArray<{ readonly kind: "handbook_decisions" | "handbook_rules" | "handbook_progress", readonly pageId: string, readonly revision: number }> }, readonly replayed?: boolean };
467
+ export type WorkRemoteAgentPendingGetInput = { readonly projectId: string, readonly principalId?: string, readonly memberId?: string };
468
+ export type WorkRemoteAgentPendingGetOutput = { readonly batchId: string, readonly threadWakesUnavailable?: true, readonly threadBatchId?: string, readonly snapshotSequence: number, readonly work: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly blocked: boolean, readonly groupId?: string, readonly round?: number, readonly memberId?: string }> }, readonly wakes: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly wakeId: string, readonly reason: string, readonly memberId?: string, readonly pausedThreads?: ReadonlyArray<string>, readonly targetThreadId?: string, readonly targetKey?: string, readonly groupId?: string, readonly groupWorkLineId?: string }> }, readonly machineTasks?: { readonly count: number, readonly truncated: boolean, readonly items: ReadonlyArray<{ readonly workItemId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "queued" | "running", readonly autoApproved?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string }> } };
469
+ export type WorkStatesListInput = { readonly projectId: string, readonly includeRemoved?: boolean };
470
+ export type WorkStatesListOutput = { readonly states: ReadonlyArray<{ readonly stateId: string, readonly name: string, readonly description: string, readonly color: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly sequence: number, readonly isDefault: boolean, readonly defaultKey?: "backlog" | "todo" | "in-progress" | "done" | "cancelled" | undefined, readonly removedAt?: string }>, readonly snapshotSequence: number };
471
+ export type WorkItemsListInput = { readonly projectId: string, readonly stateIds?: ReadonlyArray<string>, readonly stateGroups?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string } | "me" | "none">, readonly workLineIds?: ReadonlyArray<"none" | string>, readonly parentIds?: ReadonlyArray<string | "none">, readonly priorities?: ReadonlyArray<"urgent" | "high" | "medium" | "low" | "none">, readonly labelIds?: ReadonlyArray<string>, readonly archived?: "exclude" | "include" | "only", readonly orderBy?: "created" | "updated" | "priority", readonly cursor?: string | null, readonly limit?: number };
472
+ export type WorkItemsListOutput = { readonly items: ReadonlyArray<{ readonly workItemId: string, readonly projectId: string, readonly sequenceId: number, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly state: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly name: string }, readonly priority: "urgent" | "high" | "medium" | "low" | "none", readonly assignees: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly labelIds: ReadonlyArray<string>, readonly parentId: string | null, readonly startDate: string | null, readonly targetDate: string | null, readonly sortOrder: number, readonly workLineId?: string, readonly machineTask?: { readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly progress?: { readonly message: string, readonly at: string }, readonly prompt?: { readonly userCode?: string, readonly verificationUrl?: string, readonly command?: string }, readonly result?: { readonly summary: string, readonly version?: string, readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly exitCode?: number }, readonly failure?: { readonly reason: string, readonly reasonCode?: "git-missing" | "project-folder-missing" | "git-probe-failed", readonly recovery: "run-again" | "fix-on-machine" | "not-available" }, readonly autoApproved?: true, readonly localAgent?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string, readonly logCommentId?: string, readonly logPostId?: string }, readonly completedAt: string | null, readonly archivedAt: string | null, readonly version: number, readonly revision: number, readonly blockedBy: ReadonlyArray<string>, readonly blockedByTotal: number, readonly childCounts: { readonly total: number, readonly completed: number, readonly cancelled: number }, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
473
+ export type WorkItemsGetInput = { readonly projectId: string, readonly textOffset?: number, readonly textLimit?: number, readonly expectedRevision?: number, readonly workItemIds: ReadonlyArray<string> } | { readonly projectId: string, readonly textOffset?: number, readonly textLimit?: number, readonly expectedRevision?: number, readonly sequenceIds: ReadonlyArray<number> };
474
+ export type WorkItemsGetOutput = { readonly items: ReadonlyArray<{ readonly workItemId: string, readonly projectId: string, readonly sequenceId: number, readonly title: string | null, readonly bodyState: "present" | "erased" | "unavailable", readonly state: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly name: string }, readonly priority: "urgent" | "high" | "medium" | "low" | "none", readonly assignees: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly labelIds: ReadonlyArray<string>, readonly parentId: string | null, readonly startDate: string | null, readonly targetDate: string | null, readonly sortOrder: number, readonly workLineId?: string, readonly machineTask?: { readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly progress?: { readonly message: string, readonly at: string }, readonly prompt?: { readonly userCode?: string, readonly verificationUrl?: string, readonly command?: string }, readonly result?: { readonly summary: string, readonly version?: string, readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly exitCode?: number }, readonly failure?: { readonly reason: string, readonly reasonCode?: "git-missing" | "project-folder-missing" | "git-probe-failed", readonly recovery: "run-again" | "fix-on-machine" | "not-available" }, readonly autoApproved?: true, readonly localAgent?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string, readonly logCommentId?: string, readonly logPostId?: string }, readonly completedAt: string | null, readonly archivedAt: string | null, readonly version: number, readonly revision: number, readonly blockedBy: ReadonlyArray<string>, readonly blockedByTotal: number, readonly childCounts: { readonly total: number, readonly completed: number, readonly cancelled: number }, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly description: string | null, readonly descriptionWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly missingWorkItemIds: ReadonlyArray<string>, readonly missingSequenceIds: ReadonlyArray<number>, readonly snapshotSequence: number };
475
+ export type WorkRelationsListInput = { readonly projectId: string, readonly workItemId: string, readonly types?: ReadonlyArray<"blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements">, readonly otherEnd?: "open", readonly cursor?: string | null, readonly limit?: number };
476
+ export type WorkRelationsListOutput = { readonly items: ReadonlyArray<{ readonly type: "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly workItemId: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
477
+ export type WorkCommentsListInput = { readonly projectId: string, readonly workItemId: string, readonly parentId?: string, readonly order?: "oldest" | "newest", readonly cursor?: string | null, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number } | { readonly projectId: string, readonly mentions: "me", readonly cursor?: string | null, readonly limit?: number, readonly textOffset?: number, readonly textLimit?: number };
478
+ export type WorkCommentsListOutput = { readonly items: ReadonlyArray<{ readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
479
+ export type WorkCommentsGetInput = { readonly projectId: string, readonly commentId: string, readonly textOffset?: number, readonly textLimit?: number };
480
+ export type WorkCommentsGetOutput = { readonly comment: { readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }, readonly snapshotSequence: number };
481
+ export type WorkHistoryListInput = { readonly projectId: string, readonly workItemId?: string, readonly workLineId?: string, readonly afterSequence?: number, readonly order?: "oldest" | "newest", readonly cursor?: string | null, readonly limit?: number };
482
+ export type WorkHistoryListOutput = { readonly items: ReadonlyArray<{ readonly sequence: number, readonly workItemId: string | null, readonly actor: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly viaPlugin?: string, readonly at: string, readonly target: { readonly kind: "item" | "comment" | "state" | "label" | "relation" | "work-line" | "member", readonly id: string }, readonly verb: "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped" | "dispatch-decided" | "offline-rejected" | "imported" | "import-diverged" | "delivered", readonly changes: ReadonlyArray<{ readonly field: "title" | "description" | "body", readonly oldRevision: number | null, readonly newRevision: number | null } | { readonly field: "state", readonly old: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null, readonly new: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" } | null } | { readonly field: "assignees", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }> } | { readonly field: "mentions", readonly old: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly new: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }> } | { readonly field: "completedAt", readonly old: string | null, readonly new: string | null } | { readonly field: "workLine", readonly old: string | null, readonly new: string | null } | { readonly field: "parent", readonly old: string | null, readonly new: string | null } | { readonly field: "parent-start", readonly byChild: string } | { readonly field: "name", readonly old: string | null, readonly new: string } | { readonly field: "lead", readonly old: string | null, readonly new: string | null } | { readonly field: "members", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "priority", readonly old: "urgent" | "high" | "medium" | "low" | "none", readonly new: "urgent" | "high" | "medium" | "low" | "none" } | { readonly field: "labels", readonly added: ReadonlyArray<string>, readonly removed: ReadonlyArray<string> } | { readonly field: "member", readonly memberId: string } | { readonly field: "note", readonly text: string } | { readonly field: "dispatch", readonly environmentId: string, readonly outcome: "thread-opened" | "woken" | "skipped", readonly reason?: "busy" | "project-not-ready" | "thread-unavailable" | "member-not-ready" | "binding-changed", readonly detail?: "no-model" | "no-workspace", readonly threadId?: string, readonly memberId?: string } | { readonly field: "offline-rejection", readonly capabilityId: string, readonly operationId: string, readonly sourceEnvironmentId: string, readonly reason: string, readonly input: string } | { readonly field: "import", readonly importId: string, readonly sourceEnvironmentId: string, readonly sourceSequenceId: number } | { readonly field: "delivery", readonly postId: string, readonly files: ReadonlyArray<string> }> }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
483
+ export type WorkItemsCreateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly title: string, readonly description?: string, readonly stateId?: string, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly workLineId?: string, readonly parentId?: string, readonly priority?: "urgent" | "high" | "medium" | "low" | "none", readonly labelIds?: ReadonlyArray<string> };
484
+ export type WorkItemsCreateOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly sequenceId: number, readonly version: number, readonly revision: number }, readonly replayed?: boolean };
485
+ export type WorkItemsUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly expectedVersion: number, readonly title?: string, readonly description?: string, readonly stateId?: string, readonly assignees?: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "member", readonly memberId: string }>, readonly workLineId?: string | null, readonly parentId?: string | null, readonly priority?: "urgent" | "high" | "medium" | "low" | "none", readonly labelIds?: ReadonlyArray<string> };
486
+ export type WorkItemsUpdateOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly version: number, readonly revision: number }, readonly replayed?: boolean } | { readonly _tag: "queued", readonly outboxId: string, readonly homeEnvironmentId: string };
487
+ export type WorkItemsClaimInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly expectedVersion: number, readonly startStateId?: string };
488
+ export type WorkItemsClaimOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly version: number }, readonly replayed?: boolean };
489
+ export type WorkRelationsAddInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly type: "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly relatedWorkItemId: string };
490
+ export type WorkRelationsAddOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly type: "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly relatedWorkItemId: string }, readonly replayed?: boolean };
491
+ export type WorkRelationsRemoveInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly type: "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly relatedWorkItemId: string };
492
+ export type WorkRelationsRemoveOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly type: "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements", readonly relatedWorkItemId: string }, readonly replayed?: boolean };
493
+ export type WorkLinesListInput = { readonly projectId: string, readonly includeArchived?: boolean, readonly memberId?: string, readonly threadId?: string, readonly cursor?: string | null, readonly limit?: number };
494
+ export type WorkLinesListOutput = { readonly items: ReadonlyArray<{ readonly workLineId: string, readonly projectId: string, readonly name: string, readonly leadMemberId: string | null, readonly memberIds: ReadonlyArray<string>, readonly threadId: string | null, readonly roomMemberId?: string, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly pause?: { readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly reason?: string }, readonly memberPauses?: ReadonlyArray<{ readonly memberId: string, readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly reason?: string }> }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
495
+ export type WorkLinesGetInput = { readonly projectId: string, readonly workLineId: string };
496
+ export type WorkLinesGetOutput = { readonly line: { readonly workLineId: string, readonly projectId: string, readonly name: string, readonly leadMemberId: string | null, readonly memberIds: ReadonlyArray<string>, readonly threadId: string | null, readonly roomMemberId?: string, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly pause?: { readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly reason?: string }, readonly memberPauses?: ReadonlyArray<{ readonly memberId: string, readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly reason?: string }> }, readonly snapshotSequence: number };
497
+ export type WorkLinesCreateInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId?: string, readonly name: string, readonly leadMemberId?: string, readonly members?: ReadonlyArray<string>, readonly threadId?: string };
498
+ export type WorkLinesCreateOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly version: number }, readonly replayed?: boolean };
499
+ export type WorkLinesUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId: string, readonly expectedVersion: number, readonly name?: string, readonly leadMemberId?: string | null, readonly addMemberIds?: ReadonlyArray<string>, readonly removeMemberIds?: ReadonlyArray<string> };
500
+ export type WorkLinesUpdateOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly version: number }, readonly replayed?: boolean };
501
+ export type WorkLinesArchiveInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId: string };
502
+ export type WorkLinesArchiveOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly version: number }, readonly replayed?: boolean };
503
+ export type WorkLinesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId: string };
504
+ export type WorkLinesRestoreOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly version: number }, readonly replayed?: boolean };
505
+ export type WorkLinesPauseInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId: string, readonly memberId?: string, readonly reason?: string };
506
+ export type WorkLinesPauseOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly memberId?: string }, readonly replayed?: boolean };
507
+ export type WorkLinesResumeInput = { readonly projectId: string, readonly requestId?: string, readonly workLineId: string, readonly memberId?: string };
508
+ export type WorkLinesResumeOutput = { readonly sequence: number, readonly result: { readonly workLineId: string, readonly memberId?: string }, readonly replayed?: boolean };
509
+ export type WorkItemsArchiveInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string };
510
+ export type WorkItemsArchiveOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly version: number }, readonly replayed?: boolean };
511
+ export type WorkItemsUnarchiveInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string };
512
+ export type WorkItemsUnarchiveOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly version: number }, readonly replayed?: boolean };
513
+ export type WorkLabelsListInput = { readonly projectId: string, readonly includeRemoved?: boolean, readonly cursor?: string | null, readonly limit?: number };
514
+ export type WorkLabelsListOutput = { readonly items: ReadonlyArray<{ readonly labelId: string, readonly projectId: string, readonly name: string, readonly color: string, readonly removedAt: string | null, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
515
+ export type WorkLabelsCreateInput = { readonly projectId: string, readonly requestId?: string, readonly labelId?: string, readonly name: string, readonly color: string };
516
+ export type WorkLabelsCreateOutput = { readonly sequence: number, readonly result: { readonly labelId: string }, readonly replayed?: boolean };
517
+ export type WorkLabelsUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly labelId: string, readonly name?: string, readonly color?: string };
518
+ export type WorkLabelsUpdateOutput = { readonly sequence: number, readonly result: { readonly labelId: string }, readonly replayed?: boolean };
519
+ export type WorkLabelsRemoveInput = { readonly projectId: string, readonly requestId?: string, readonly labelId: string };
520
+ export type WorkLabelsRemoveOutput = { readonly sequence: number, readonly result: { readonly labelId: string }, readonly replayed?: boolean };
521
+ export type WorkLabelsRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly labelId: string };
522
+ export type WorkLabelsRestoreOutput = { readonly sequence: number, readonly result: { readonly labelId: string }, readonly replayed?: boolean };
523
+ export type WorkStatesCreateInput = { readonly projectId: string, readonly requestId?: string, readonly stateId?: string, readonly name: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled", readonly color: string, readonly description?: string, readonly sequence?: number };
524
+ export type WorkStatesCreateOutput = { readonly sequence: number, readonly result: { readonly stateId: string }, readonly replayed?: boolean };
525
+ export type WorkStatesUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly stateId: string, readonly name?: string, readonly color?: string, readonly description?: string, readonly sequence?: number };
526
+ export type WorkStatesUpdateOutput = { readonly sequence: number, readonly result: { readonly stateId: string }, readonly replayed?: boolean };
527
+ export type WorkStatesRemoveInput = { readonly projectId: string, readonly requestId?: string, readonly stateId: string, readonly replacementStateId?: string };
528
+ export type WorkStatesRemoveOutput = { readonly sequence: number, readonly result: { readonly stateId: string }, readonly replayed?: boolean };
529
+ export type WorkStatesRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly stateId: string };
530
+ export type WorkStatesRestoreOutput = { readonly sequence: number, readonly result: { readonly stateId: string }, readonly replayed?: boolean };
531
+ export type MembersListInput = { readonly projectId: string, readonly includeRemoved?: boolean, readonly cursor?: string | null, readonly limit?: number };
532
+ export type MembersListOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
533
+ export type MembersGetInput = { readonly projectId: string, readonly memberId: string, readonly textOffset?: number, readonly textLimit?: number, readonly expectedRevision?: number };
534
+ export type MembersGetOutput = { readonly member: { readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string }, readonly workInstructions: string | null, readonly workInstructionsWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }, readonly snapshotSequence: number };
535
+ export type MembersCreateInput = { readonly projectId: string, readonly requestId?: string, readonly memberId?: string, readonly kind: "human" | "agent", readonly name: string, readonly title?: string, readonly responsibility?: string, readonly avatar?: { readonly pattern: string, readonly color: string }, readonly workInstructions?: string, readonly identity?: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } }, readonly agent?: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } };
536
+ export type MembersCreateOutput = { readonly sequence: number, readonly result: { readonly memberId: string, readonly version: number, readonly workInstructionsRevision?: number }, readonly replayed?: boolean };
537
+ export type MembersUpdateInput = { readonly projectId: string, readonly requestId?: string, readonly memberId: string, readonly expectedVersion: number, readonly name?: string, readonly title?: string, readonly responsibility?: string, readonly avatar?: { readonly pattern: string, readonly color: string } | null, readonly workInstructions?: string, readonly identity?: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent?: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } };
538
+ export type MembersUpdateOutput = { readonly sequence: number, readonly result: { readonly memberId: string, readonly version: number, readonly workInstructionsRevision?: number }, readonly replayed?: boolean };
539
+ export type MembersRemoveInput = { readonly projectId: string, readonly requestId?: string, readonly memberId: string };
540
+ export type MembersRemoveOutput = { readonly sequence: number, readonly result: { readonly memberId: string, readonly version: number }, readonly replayed?: boolean };
541
+ export type MembersRestoreInput = { readonly projectId: string, readonly requestId?: string, readonly memberId: string };
542
+ export type MembersRestoreOutput = { readonly sequence: number, readonly result: { readonly memberId: string, readonly version: number }, readonly replayed?: boolean };
543
+ export type MembersTrialRecordInput = { readonly projectId: string, readonly requestId?: string, readonly memberId: string, readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly summary?: string };
544
+ export type MembersTrialRecordOutput = { readonly sequence: number, readonly result: { readonly memberId: string }, readonly replayed?: boolean };
545
+ export type MembersRuntimeListInput = { readonly projectId: string };
546
+ export type MembersRuntimeListOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> };
547
+ export type MembersRuntimeSubscribeInput = { readonly projectId: string };
548
+ export type MembersRuntimeSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly memberId: string, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly lastAction?: string, readonly lastActionLabel?: { readonly name: string, readonly path?: string, readonly detail?: string }, readonly requestSummary?: string, readonly waitId?: string, readonly workItemId?: string, readonly threadId: string, readonly environmentId: string, readonly online: boolean, readonly stale?: boolean, readonly since: string, readonly seenAt: string, readonly state?: "waiting" | "error" | "stuck" | "offline" | "paused" | "working" | "idle", readonly openWorkItemCount?: number, readonly openWorkItemIds?: ReadonlyArray<string> }> } } | { readonly _tag: "synchronized" };
549
+ export type WorkMachineTasksCreateInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly title?: string, readonly approval?: string };
550
+ export type WorkMachineTasksCreateOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly sequenceId: number, readonly status: "awaiting-approval" | "queued", readonly approvalReason?: "remote-caller" | "account-connection-inactive" | "other-account" }, readonly replayed?: boolean };
551
+ export type WorkMachineTasksRunInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId?: string, readonly machine: string, readonly task?: string, readonly variant?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly waitSeconds?: number };
552
+ export type WorkMachineTasksRunOutput = { readonly workItemId: string, readonly sequenceId: number, readonly finished: boolean, readonly machineTask: { readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly progress?: { readonly message: string, readonly at: string }, readonly prompt?: { readonly userCode?: string, readonly verificationUrl?: string, readonly command?: string }, readonly result?: { readonly summary: string, readonly version?: string, readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly exitCode?: number }, readonly failure?: { readonly reason: string, readonly reasonCode?: "git-missing" | "project-folder-missing" | "git-probe-failed", readonly recovery: "run-again" | "fix-on-machine" | "not-available" }, readonly autoApproved?: true, readonly localAgent?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string, readonly logCommentId?: string, readonly logPostId?: string } };
553
+ export type WorkMachineTasksGetInput = { readonly projectId: string, readonly workItemId: string };
554
+ export type WorkMachineTasksGetOutput = { readonly workItemId: string, readonly sequenceId: number, readonly state: { readonly stateId: string, readonly group: "backlog" | "unstarted" | "started" | "completed" | "cancelled" }, readonly version: number, readonly machineTask: { readonly environmentId: string, readonly actionId: string, readonly input?: { readonly projectTask?: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number }, readonly instanceId?: string, readonly variant?: string, readonly targetVersion?: string, readonly command?: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly timeoutSeconds?: number, readonly minutes?: number }, readonly status: "awaiting-approval" | "queued" | "running" | "succeeded" | "failed" | "declined", readonly progress?: { readonly message: string, readonly at: string }, readonly prompt?: { readonly userCode?: string, readonly verificationUrl?: string, readonly command?: string }, readonly result?: { readonly summary: string, readonly version?: string, readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly exitCode?: number }, readonly failure?: { readonly reason: string, readonly reasonCode?: "git-missing" | "project-folder-missing" | "git-probe-failed", readonly recovery: "run-again" | "fix-on-machine" | "not-available" }, readonly autoApproved?: true, readonly localAgent?: true, readonly accountOriginEnvironmentId?: string, readonly rememberProject?: boolean, readonly approval?: string, readonly logCommentId?: string, readonly logPostId?: string }, readonly updatedAt: string };
555
+ export type WorkMachineTasksRespondInput = { readonly projectId: string, readonly requestId?: string, readonly workItemId: string, readonly decision: "approve" | "decline", readonly rememberProject?: boolean, readonly approval?: string };
556
+ export type WorkMachineTasksRespondOutput = { readonly sequence: number, readonly result: { readonly workItemId: string, readonly version: number, readonly logCommentId?: string, readonly logPostId?: string }, readonly replayed?: boolean };
557
+ export type ThreadsInteractionModeSetInput = { readonly requestId?: string, readonly threadId: string, readonly interactionMode: "default" | "plan" };
558
+ export type ThreadsInteractionModeSetOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
559
+ export type ThreadsNativeModeSetInput = { readonly requestId?: string, readonly threadId: string, readonly nativeModeId: string };
560
+ export type ThreadsNativeModeSetOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
561
+ export type ThreadsRuntimeModeSetInput = { readonly requestId?: string, readonly threadId: string, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access" };
562
+ export type ThreadsRuntimeModeSetOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
563
+ export type ThreadsContextCompactInput = { readonly requestId?: string, readonly threadId: string };
564
+ export type ThreadsContextCompactOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
565
+ export type PluginsSelfdevPromoteInput = { readonly requestId?: string, readonly threadId: string, readonly pluginId: string };
566
+ export type PluginsSelfdevPromoteOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
567
+ export type PluginsSelfdevStopInput = { readonly requestId?: string, readonly threadId: string, readonly pluginId: string };
568
+ export type PluginsSelfdevStopOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
569
+ export type ThreadsShellCommandRecordInput = { readonly requestId?: string, readonly threadId: string, readonly command: string, readonly terminalId: string, readonly cwd: string };
570
+ export type ThreadsShellCommandRecordOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
571
+ export type ThreadsTurnIntentsEditInput = { readonly requestId?: string, readonly threadId: string, readonly intentId: string, readonly expectedRevision: number, readonly message: { readonly text: string, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly dataUrl: string, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_1 }, readonly appIdentifier?: string, readonly appIconDataUrl?: string } } | { readonly type: "file", readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly dataUrl: string } | { readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_1 }, readonly appIdentifier?: string, readonly appIconDataUrl?: string } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } }> } };
572
+ export type ThreadsTurnIntentsEditOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
573
+ export type ThreadsTurnIntentsSetPausedInput = { readonly requestId?: string, readonly threadId: string, readonly intentId: string, readonly paused: boolean };
574
+ export type ThreadsTurnIntentsSetPausedOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
575
+ export type ThreadsTurnIntentsReorderInput = { readonly requestId?: string, readonly threadId: string, readonly intentId: string, readonly beforeIntentId: string | null };
576
+ export type ThreadsTurnIntentsReorderOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
577
+ export type ThreadsTurnQueuePauseInput = { readonly requestId?: string, readonly threadId: string };
578
+ export type ThreadsTurnQueuePauseOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
579
+ export type ThreadsUserInputDismissInput = { readonly requestId?: string, readonly threadId: string, readonly userInputRequestId: string };
580
+ export type ThreadsUserInputDismissOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
581
+ export type ThreadsDecisionsRespondInput = { readonly requestId?: string, readonly threadId: string, readonly decisionRequestId: string, readonly machineTaskApproval?: string, readonly optionId: string, readonly reason?: string };
582
+ export type ThreadsDecisionsRespondOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
583
+ export type ThreadsSnoozeInput = { readonly requestId?: string, readonly threadId: string, readonly snoozedUntil: string };
584
+ export type ThreadsSnoozeOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
585
+ export type ThreadsUnsnoozeInput = { readonly requestId?: string, readonly threadId: string, readonly reason: "user" };
586
+ export type ThreadsUnsnoozeOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
587
+ export type ThreadsReorderInput = { readonly requestId?: string, readonly threadId: string, readonly orderKey: string };
588
+ export type ThreadsReorderOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
589
+ export type ThreadsDeleteInput = { readonly requestId?: string, readonly threadId: string };
590
+ export type ThreadsDeleteOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
591
+ export type ThreadsArchiveInput = { readonly requestId?: string, readonly threadId: string };
592
+ export type ThreadsArchiveOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
593
+ export type ThreadsUnarchiveInput = { readonly requestId?: string, readonly threadId: string };
594
+ export type ThreadsUnarchiveOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
595
+ export type ThreadsSettleInput = { readonly requestId?: string, readonly threadId: string, readonly discardQueued?: boolean };
596
+ export type ThreadsSettleOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
597
+ export type ThreadsUnsettleInput = { readonly requestId?: string, readonly threadId: string, readonly reason: "user" };
598
+ export type ThreadsUnsettleOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
599
+ export type ThreadsCreateInput = { readonly requestId?: string, readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string, readonly folderIds?: ReadonlyArray<string>, readonly memberId?: string, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" }, readonly presetId?: string };
600
+ export type ThreadsCreateOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
601
+ export type ThreadsForkInput = { readonly requestId?: string, readonly threadId: string, readonly sourceThreadId: string, readonly sourceMessageId: string, readonly startFolderId?: string, readonly folderIds?: ReadonlyArray<string> };
602
+ export type ThreadsForkOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
603
+ export type ThreadsImportInput = { readonly requestId?: string, readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string, readonly folderIds?: ReadonlyArray<string>, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string }> }, readonly messageId: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly createdAt: string, readonly updatedAt: string, readonly modelSelection?: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown }, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string, readonly order: number } }>, readonly activities?: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number, readonly createdAt: string }> };
604
+ export type ThreadsImportOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
605
+ export type ThreadsExternalMessagesAppendInput = { readonly requestId?: string, readonly threadId: string, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string }> }, readonly messageId: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly createdAt: string, readonly updatedAt: string, readonly modelSelection?: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown }, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string, readonly order: number } }>, readonly activities?: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number, readonly createdAt: string }> };
606
+ export type ThreadsExternalMessagesAppendOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
607
+ export type ThreadsUpdateInput = { readonly threadId: string, readonly requestId?: string, readonly title?: string, readonly regenerateTitle?: true, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | null, readonly branch?: string | null, readonly expectedBranch?: string | null, readonly worktreePath?: string | null, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null, readonly presetId?: string | null, readonly folderIds?: ReadonlyArray<string> };
608
+ export type ThreadsUpdateOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
609
+ export type ThreadsTurnsStartInput = { readonly slashCommand?: { readonly pluginId: string, readonly name: string }, readonly requestId?: string, readonly threadId: string, readonly message: { readonly messageId: string, readonly role: "user", readonly text: string, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly dataUrl: string, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_2 }, readonly appIdentifier?: string, readonly appIconDataUrl?: string } } | { readonly type: "file", readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly dataUrl: string } | { readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_2 }, readonly appIdentifier?: string, readonly appIconDataUrl?: string } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } }> }, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly titleSeed?: string, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly bootstrap?: { readonly createThread?: { readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown, readonly instanceId?: unknown, readonly model: unknown, readonly options?: unknown }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string, readonly folderIds?: ReadonlyArray<string>, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" }, readonly presetId?: string, readonly createdBy?: { readonly userId: string, readonly displayName: string }, readonly createdAt: string }, readonly prepareWorktree?: { readonly baseBranch: string, readonly branch?: string, readonly startFromOrigin?: boolean }, readonly runSetupScript?: boolean }, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string }, readonly forwardedFrom?: { readonly displayName: string }, readonly intentAction?: { readonly kind: "steer", readonly turnId: string, readonly commandId: string, readonly source: "automatic" } };
610
+ export type ThreadsTurnsStartOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted", readonly result?: unknown };
611
+ export type ThreadsUserInputRespondInput = { readonly threadId: string, readonly requestId?: string, readonly userInputRequestId: string, readonly answers: { readonly [x: string]: unknown }, readonly attachmentsByQuestionId?: { readonly [x: string]: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_3 }, readonly appIdentifier?: string, readonly appIconDataUrl?: string } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string, readonly toolCallId?: string, readonly title?: string, readonly note?: string, readonly delivered?: true, readonly sha256?: string, readonly fileCount?: number, readonly deliveryId?: string } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } }> } };
612
+ export type ThreadsUserInputRespondOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
613
+ export type ThreadsTurnsInterruptInput = { readonly requestId?: string, readonly threadId: string, readonly turnId?: string };
614
+ export type ThreadsTurnsInterruptOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
615
+ export type ThreadsSessionStopInput = { readonly requestId?: string, readonly threadId: string, readonly onlyIfSettled?: boolean, readonly onlyIfNoTurnInFlight?: boolean, readonly reason?: "context-change" };
616
+ export type ThreadsSessionStopOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
617
+ export type ThreadsSessionRestartInput = { readonly requestId?: string, readonly threadId: string };
618
+ export type ThreadsSessionRestartOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop", readonly outcome?: "completed" | "failed" | "cancelled" | "unconfirmed", readonly detail?: string };
1014
619
  export type ThreadsSessionRetryCleanupInput = SessionCleanupRetryInput;
1015
620
  export type ThreadsSessionRetryCleanupOutput = SessionCleanupRecovered | SessionCleanupBlocked;
1016
- export type ApprovalsRespondInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "approvalRequestId": string, readonly "decision": "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly "reason"?: string };
1017
- export type ApprovalsRespondOutput = Objects_203;
1018
- export type ThreadsTurnIntentsRunInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "intentId": string, readonly "mode": "steer" | "interrupt", readonly "expectedTurnId"?: string | null };
1019
- export type ThreadsTurnIntentsRunOutput = Objects_203;
1020
- export type ThreadsTurnIntentsCancelInput = { readonly "requestId"?: string, readonly "threadId": string, readonly "intentId": string, readonly "expectedStatus"?: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "expectedDeliveryCertainty"?: "not-dispatched" | "confirmed" | "unknown" };
1021
- export type ThreadsTurnIntentsCancelOutput = Objects_203;
1022
- export type ThreadsTurnQueueResumeInput = { readonly "requestId"?: string, readonly "threadId": string };
1023
- export type ThreadsTurnQueueResumeOutput = Objects_203;
1024
- export type ProjectsUpdateInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "title"?: string, readonly "workspaceRoot"?: string, readonly "defaultModelSelection"?: Objects_113 | null, readonly "projectIcon"?: Union_64 | null, readonly "faviconPath"?: string | null, readonly "defaultFolderId"?: string | null };
1025
- export type ProjectsUpdateOutput = Objects_203;
1026
- export type ProjectsArchiveInput = { readonly "requestId"?: string, readonly "projectId": string };
1027
- export type ProjectsArchiveOutput = Objects_203;
1028
- export type ProjectsUnarchiveInput = { readonly "requestId"?: string, readonly "projectId": string };
1029
- export type ProjectsUnarchiveOutput = Objects_203;
1030
- export type ProjectsDeleteInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "force"?: boolean };
1031
- export type ProjectsDeleteOutput = Objects_203;
1032
- export type ProjectsReorderInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "orderKey": string };
1033
- export type ProjectsReorderOutput = Objects_203;
1034
- export type ProjectsFoldersDetachInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "folderId": string };
1035
- export type ProjectsFoldersDetachOutput = Objects_203;
1036
- export type ProjectsFoldersRelocateInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "folderId": string, readonly "path": string };
1037
- export type ProjectsFoldersRelocateOutput = Objects_203;
1038
- export type ProjectsToolkitsSetInput = { readonly "projectId": string, readonly "toolkit": "board" | "memory" | "messages", readonly "enabled": boolean, readonly "requestId"?: string };
1039
- export type ProjectsToolkitsSetOutput = { readonly "sequence": number, readonly "result": { readonly "enabled": boolean, readonly "changed": boolean }, readonly "replayed"?: boolean };
1040
- export type ProjectsMemoryInjectionSetInput = { readonly "projectId": string, readonly "enabled": boolean, readonly "requestId"?: string };
1041
- export type ProjectsMemoryInjectionSetOutput = { readonly "sequence": number, readonly "result": { readonly "enabled": boolean, readonly "changed": boolean }, readonly "replayed"?: boolean };
1042
- export type ProjectsCloneStartInput = { readonly "destinationPath": string, readonly "remoteUrl": string, readonly "target": { readonly "kind": "create-project", readonly "projectId": string, readonly "title": string, readonly "defaultModelSelection"?: Objects_113 | null, readonly "homeEnvironmentId"?: string } | { readonly "kind": "attach-folder", readonly "projectId": string } };
1043
- export type ProjectsCloneStartOutput = { readonly "projectId": string, readonly "folderId": string };
1044
- export type ProjectsCloneRetryInput = Objects_214;
1045
- export type ProjectsCloneRetryOutput = Objects_215;
1046
- export type ProjectsCloneCancelInput = Objects_214;
1047
- export type ProjectsCloneCancelOutput = Objects_215;
1048
- export type ProjectsCreateInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "title": string, readonly "workspaceRoot": string, readonly "createWorkspaceRootIfMissing"?: boolean, readonly "defaultModelSelection"?: Objects_113 | null, readonly "homeEnvironmentId"?: string };
1049
- export type ProjectsCreateOutput = Objects_203;
1050
- export type ProjectsFoldersAttachInput = { readonly "requestId"?: string, readonly "projectId": string, readonly "path": string, readonly "threadId"?: string };
1051
- export type ProjectsFoldersAttachOutput = Objects_203;
621
+ export type ApprovalsRespondInput = { readonly requestId?: string, readonly threadId: string, readonly approvalRequestId: string, readonly decision: "accept" | "acceptForSession" | "acceptAlways" | "decline" | "cancel", readonly reason?: string };
622
+ export type ApprovalsRespondOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
623
+ export type ThreadsTurnIntentsRunInput = { readonly requestId?: string, readonly threadId: string, readonly intentId: string, readonly mode: "steer" | "interrupt", readonly expectedTurnId?: string | null };
624
+ export type ThreadsTurnIntentsRunOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
625
+ export type ThreadsTurnIntentsCancelInput = { readonly requestId?: string, readonly threadId: string, readonly intentId: string, readonly expectedStatus?: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly expectedDeliveryCertainty?: "not-dispatched" | "confirmed" | "unknown" };
626
+ export type ThreadsTurnIntentsCancelOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
627
+ export type ThreadsTurnQueueResumeInput = { readonly requestId?: string, readonly threadId: string };
628
+ export type ThreadsTurnQueueResumeOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
629
+ export type ProjectsUpdateInput = { readonly requestId?: string, readonly projectId: string, readonly title?: string, readonly workspaceRoot?: string, readonly defaultModelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null, readonly faviconPath?: string | null, readonly defaultFolderId?: string | null };
630
+ export type ProjectsUpdateOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
631
+ export type ProjectsArchiveInput = { readonly requestId?: string, readonly projectId: string };
632
+ export type ProjectsArchiveOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
633
+ export type ProjectsUnarchiveInput = { readonly requestId?: string, readonly projectId: string };
634
+ export type ProjectsUnarchiveOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
635
+ export type ProjectsDeleteInput = { readonly requestId?: string, readonly projectId: string, readonly force?: boolean };
636
+ export type ProjectsDeleteOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
637
+ export type ProjectsReorderInput = { readonly requestId?: string, readonly projectId: string, readonly orderKey: string };
638
+ export type ProjectsReorderOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
639
+ export type ProjectsFoldersConfirmTargetInput = { readonly notificationId: string };
640
+ export type ProjectsFoldersConfirmTargetOutput = { };
641
+ export type ProjectsFoldersDetachInput = { readonly requestId?: string, readonly projectId: string, readonly folderId: string };
642
+ export type ProjectsFoldersDetachOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
643
+ export type ProjectsFoldersRelocateInput = { readonly requestId?: string, readonly projectId: string, readonly folderId: string, readonly path: string };
644
+ export type ProjectsFoldersRelocateOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
645
+ export type ProjectsToolkitsSetInput = { readonly projectId: string, readonly toolkit: "board" | "memory" | "messages", readonly enabled: boolean, readonly requestId?: string };
646
+ export type ProjectsToolkitsSetOutput = { readonly sequence: number, readonly result: { readonly enabled: boolean, readonly changed: boolean }, readonly replayed?: boolean };
647
+ export type ProjectsMemoryInjectionSetInput = { readonly projectId: string, readonly enabled: boolean, readonly requestId?: string };
648
+ export type ProjectsMemoryInjectionSetOutput = { readonly sequence: number, readonly result: { readonly enabled: boolean, readonly changed: boolean }, readonly replayed?: boolean };
649
+ export type ProjectsCloneStartInput = { readonly destinationPath: string, readonly remoteUrl: string, readonly target: { readonly kind: "create-project", readonly projectId: string, readonly title: string, readonly defaultModelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly homeEnvironmentId?: string } | { readonly kind: "attach-folder", readonly projectId: string } };
650
+ export type ProjectsCloneStartOutput = { readonly projectId: string, readonly folderId: string };
651
+ export type ProjectsCloneRetryInput = { readonly projectId: string, readonly folderId: string };
652
+ export type ProjectsCloneRetryOutput = { readonly applied: boolean };
653
+ export type ProjectsCloneCancelInput = { readonly projectId: string, readonly folderId: string };
654
+ export type ProjectsCloneCancelOutput = { readonly applied: boolean };
655
+ export type ProjectsCreateInput = { readonly requestId?: string, readonly projectId: string, readonly title: string, readonly workspaceRoot: string, readonly createWorkspaceRootIfMissing?: boolean, readonly defaultModelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } } | null, readonly homeEnvironmentId?: string };
656
+ export type ProjectsCreateOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
657
+ export type ProjectsFoldersAttachInput = { readonly requestId?: string, readonly projectId: string, readonly path: string, readonly threadId?: string };
658
+ export type ProjectsFoldersAttachOutput = { readonly sequence: number, readonly replayed?: boolean, readonly status: "accepted" | "noop" };
1052
659
  export type ProjectsConversationEnsureInput = { };
1053
- export type ProjectsConversationEnsureOutput = { readonly "projectId": string, readonly "workspaceRoot": string, readonly "created": boolean };
660
+ export type ProjectsConversationEnsureOutput = { readonly projectId: string, readonly workspaceRoot: string, readonly created: boolean };
1054
661
  export type CommunicationPeopleCurrentInput = { };
1055
- export type CommunicationPeopleCurrentOutput = { readonly "person": Union_39 | null };
662
+ export type CommunicationPeopleCurrentOutput = { readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } | null };
1056
663
  export type MachineSettingsDatabaseSpaceGetInput = DatabaseSpaceInput;
1057
664
  export type MachineSettingsDatabaseSpaceGetOutput = DatabaseSpaceStatus;
1058
665
  export type MachineSettingsDatabaseSpaceStartInput = DatabaseSpaceInput;
1059
666
  export type MachineSettingsDatabaseSpaceStartOutput = DatabaseSpaceStatus;
1060
667
  export type MachineSettingsDatabaseSpaceStopInput = DatabaseSpaceInput;
1061
668
  export type MachineSettingsDatabaseSpaceStopOutput = DatabaseSpaceStatus;
1062
- export type CommunicationPostsSendInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "to": CommunicationPostAddressInput, readonly "text": string, readonly "replyTo"?: CommunicationPostReplyInput, readonly "delivery"?: "quiet" | "wake" | "steer", readonly "mentions"?: ReadonlyArray<CommunicationPostRecipientInput>, readonly "attachments"?: ReadonlyArray<CommunicationPostAttachmentPath | CommunicationPostAttachmentRef> };
1063
- export type CommunicationPostsSendOutput = { readonly "sequence": number, readonly "result": CommunicationPostResult, readonly "replayed"?: boolean };
669
+ export type CommunicationPostsSendInput = { readonly projectId: string, readonly requestId?: string, readonly to: CommunicationPostAddressInput, readonly text: string, readonly replyTo?: CommunicationPostReplyInput, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<CommunicationPostRecipientInput>, readonly attachments?: ReadonlyArray<CommunicationPostAttachmentPath | CommunicationPostAttachmentRef> };
670
+ export type CommunicationPostsSendOutput = { readonly sequence: number, readonly result: CommunicationPostResult, readonly replayed?: boolean };
1064
671
  export type CommunicationPostsWithdrawInput = CommunicationPostChange;
1065
- export type CommunicationPostsWithdrawOutput = { readonly "sequence": number, readonly "result": CommunicationPostResult, readonly "replayed"?: boolean };
672
+ export type CommunicationPostsWithdrawOutput = { readonly sequence: number, readonly result: CommunicationPostResult, readonly replayed?: boolean };
1066
673
  export type CommunicationPostsDeleteInput = CommunicationPostChange;
1067
- export type CommunicationPostsDeleteOutput = { readonly "sequence": number, readonly "result": CommunicationPostResult, readonly "replayed"?: boolean };
1068
- export type CommunicationPostsBindInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "postId": string, readonly "targetKey": string, readonly "to": CommunicationPostBindParticipantInput };
1069
- export type CommunicationPostsBindOutput = { readonly "sequence": number, readonly "result": CommunicationPostBindResult, readonly "replayed"?: boolean };
1070
- export type CommunicationPostsGetInput = { readonly "refs"?: ReadonlyArray<CommunicationPostReplyInput_1>, readonly "recordIds"?: ReadonlyArray<string>, readonly "projectId"?: string, readonly "textOffset"?: number, readonly "textLimit"?: number };
1071
- export type CommunicationPostsGetOutput = ReadonlyArray<{ readonly "kind": "post", readonly "postId": string, readonly "projectId": string, readonly "sequence": number, readonly "anchor": Union_65, readonly "inGroup"?: true, readonly "author": Union_56, readonly "notification"?: CommunicationPostNotification, readonly "notificationResolution"?: CommunicationPostNotificationResolution, readonly "authorName"?: string, readonly "authorMemberId"?: string, readonly "authorRemoteThreadId"?: string, readonly "replyTo"?: Union_66, readonly "delivery"?: "quiet" | "wake" | "steer", readonly "mentions"?: Arrays_41, readonly "attachments"?: Arrays_42, readonly "purpose"?: "artifact", readonly "targets": Arrays_43, readonly "revision": number, readonly "text": string | null, readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable", readonly "textWindow"?: Objects_59, readonly "createdAt": string } | { readonly "kind": "record", readonly "recordId": string, readonly "from": Union_33, readonly "to": Union_34, readonly "replyTo": string | null, readonly "text": string | null, readonly "delivery": "quiet" | "wake" | "steer", readonly "createdAt": string, readonly "stages": Objects_77, readonly "idempotencyKey"?: string | undefined, readonly "runId"?: string | undefined, readonly "toRole"?: string | undefined, readonly "attachments"?: Union_35, readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable", readonly "projectId": string | null, readonly "sequence": number, readonly "claim": Union_37, readonly "textWindow"?: Objects_59, readonly "group"?: Objects_79, readonly "mentions"?: Arrays_11, readonly "targets"?: Arrays_12, readonly "workItem"?: Objects_81, readonly "childReport"?: CommunicationChildReport } | { readonly "kind": "comment", readonly "commentId": string, readonly "workItemId": string, readonly "projectId": string, readonly "sequence": number, readonly "revision": number, readonly "author": Union_56, readonly "body": string | null, readonly "bodyWindow"?: Objects_59, readonly "bodyState": "present" | "erased" | "unavailable", readonly "mentions": Arrays_40, readonly "parentId": string | null, readonly "createdAt": string, readonly "editedAt": string | null }>;
1072
- export type CommunicationPostsListInput = Objects_82 | Objects_83 | Objects_84 | Objects_85 | { readonly "projectId": string, readonly "since"?: string | null, readonly "until"?: string | null, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "workItemId": string };
1073
- export type CommunicationPostsListOutput = { readonly "items": ReadonlyArray<{ readonly "kind": "post", readonly "sequence": number, readonly "post": { readonly "postId": string, readonly "projectId": string, readonly "sequence": number, readonly "anchor": Union_65, readonly "inGroup"?: true, readonly "author": Union_56, readonly "notification"?: CommunicationPostNotification, readonly "notificationResolution"?: CommunicationPostNotificationResolution, readonly "authorName"?: string, readonly "authorMemberId"?: string, readonly "authorRemoteThreadId"?: string, readonly "replyTo"?: Union_66, readonly "delivery"?: "quiet" | "wake" | "steer", readonly "mentions"?: Arrays_41, readonly "attachments"?: Arrays_42, readonly "purpose"?: "artifact", readonly "targets": Arrays_43, readonly "revision": number, readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable", readonly "createdAt": string, readonly "textPreview": string | null, readonly "textTruncated": boolean } } | { readonly "kind": "record", readonly "sequence": number, readonly "record": Objects_87 } | { readonly "kind": "comment", readonly "sequence": number, readonly "comment": Objects_185 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
1074
- export type CommunicationPostsMarkReadInput = { readonly "projectId": string, readonly "requestId"?: string, readonly "items": ReadonlyArray<CommunicationPostMarkReadItem> };
1075
- export type CommunicationPostsMarkReadOutput = { readonly "sequence": number, readonly "result": CommunicationPostMarkReadResult, readonly "replayed"?: boolean };
1076
- export type MembersExternalWakesClaimInput = { readonly "requestId"?: string };
1077
- export type MembersExternalWakesClaimOutput = { readonly "claimed": { readonly "intentId": string, readonly "projectId": string, readonly "seatId": string, readonly "pendingBatchId": string, readonly "attemptId": string, readonly "attemptNumber": number, readonly "binding": { readonly "connectorPluginId": string, readonly "platformAgentRef": string, readonly "bindingGeneration": number } } | null, readonly "withheld"?: { readonly "intentId": string, readonly "attemptId": string, readonly "outcome": "accepted" | "rejected" | "unknown" | null, readonly "bindingGeneration": number, readonly "reason": "already-handed-out" } };
1078
- export type MembersExternalWakesReportInput = { readonly "attemptId": string, readonly "requestId"?: string, readonly "outcome": "accepted" } | { readonly "attemptId": string, readonly "requestId"?: string, readonly "outcome": "unknown" } | { readonly "attemptId": string, readonly "requestId"?: string, readonly "outcome": "rejected", readonly "retryable": boolean };
1079
- export type MembersExternalWakesReportOutput = { readonly "attemptId": string, readonly "intentId": string, readonly "outcome": "accepted" | "rejected" | "unknown", readonly "retryable": boolean | null };
1080
- export type MembersExternalWakesListInput = { readonly "projectId": string, readonly "cursor"?: string | null, readonly "limit"?: number, readonly "unreported"?: boolean };
1081
- export type MembersExternalWakesListOutput = { readonly "items": ReadonlyArray<{ readonly "intentId": string, readonly "projectId": string, readonly "seatId": string, readonly "pendingBatchId": string, readonly "bindingGeneration": number, readonly "connectorPluginId"?: string, readonly "platformAgentRef"?: string, readonly "createdAt": string, readonly "attemptCount": number, readonly "openAttemptId": string | null, readonly "latestOutcome": "accepted" | "rejected" | "unknown" | null, readonly "latestRetryable": boolean | null }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
1082
- export type MembersExternalWakesGetInput = { readonly "projectId": string, readonly "intentId": string };
1083
- export type MembersExternalWakesGetOutput = { readonly "intentId": string, readonly "projectId": string, readonly "seatId": string, readonly "pendingBatchId": string, readonly "bindingGeneration": number, readonly "connectorPluginId"?: string, readonly "platformAgentRef"?: string, readonly "createdAt": string, readonly "attemptCount": number, readonly "openAttemptId": string | null, readonly "latestOutcome": "accepted" | "rejected" | "unknown" | null, readonly "latestRetryable": boolean | null, readonly "attempts": ReadonlyArray<{ readonly "attemptId": string, readonly "attemptNumber": number, readonly "connectorPluginId"?: string, readonly "platformAgentRef"?: string, readonly "bindingGeneration": number, readonly "outcome": "accepted" | "rejected" | "unknown" | null, readonly "retryable": boolean | null, readonly "createdAt": string, readonly "reportedAt": string | null }> };
1084
- export type ThreadsMembersGetInput = { readonly "projectId": string, readonly "threads": ReadonlyArray<ThreadMemberThreadRefInput> };
674
+ export type CommunicationPostsDeleteOutput = { readonly sequence: number, readonly result: CommunicationPostResult, readonly replayed?: boolean };
675
+ export type CommunicationPostsBindInput = { readonly projectId: string, readonly requestId?: string, readonly postId: string, readonly targetKey: string, readonly to: CommunicationPostBindParticipantInput };
676
+ export type CommunicationPostsBindOutput = { readonly sequence: number, readonly result: CommunicationPostBindResult, readonly replayed?: boolean };
677
+ export type CommunicationPostsGetInput = { readonly refs?: ReadonlyArray<CommunicationPostReplyInput>, readonly recordIds?: ReadonlyArray<string>, readonly projectId?: string, readonly textOffset?: number, readonly textLimit?: number };
678
+ export type CommunicationPostsGetOutput = ReadonlyArray<{ readonly kind: "post", readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }>, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly text: string | null, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly createdAt: string } | { readonly kind: "record", readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly text: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | undefined, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport } | { readonly kind: "comment", readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null }>;
679
+ export type CommunicationPostsListInput = { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly threadIds: ReadonlyArray<string> } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly groupThreadId: string } | { readonly projectId: string, readonly since?: string | null, readonly until?: string | null, readonly cursor?: string | null, readonly limit?: number, readonly workItemId: string };
680
+ export type CommunicationPostsListOutput = { readonly items: ReadonlyArray<{ readonly kind: "post", readonly sequence: number, readonly post: { readonly postId: string, readonly projectId: string, readonly sequence: number, readonly anchor: { readonly kind: "work-item", readonly workItemId: string } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }, readonly inGroup?: true, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly notification?: CommunicationPostNotification, readonly notificationResolution?: CommunicationPostNotificationResolution, readonly authorName?: string, readonly authorMemberId?: string, readonly authorRemoteThreadId?: string, readonly replyTo?: { readonly kind: "post", readonly id: string } | { readonly kind: "record", readonly id: string } | { readonly kind: "comment", readonly id: string }, readonly delivery?: "quiet" | "wake" | "steer", readonly mentions?: ReadonlyArray<{ readonly kind: "member", readonly memberId: string } | { readonly kind: "person", readonly person: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "thread", readonly environmentId: string, readonly threadId: string } | { readonly kind: "principal", readonly principalId: string, readonly memberId?: string }>, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }>, readonly purpose?: "artifact", readonly targets: ReadonlyArray<{ readonly key: string, readonly role: "addressee" | "mention" | "reply" | "coordinator" | "copy", readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly scope?: { readonly workLineId: string }, readonly readAt: string | null, readonly readTurnId?: string, readonly deliveryState?: "claimed" | "accepted" | "failed" | "withdrawn" | "held", readonly deliveryFailure?: { readonly reason: string, readonly recovery?: string } }>, readonly revision: number, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly createdAt: string, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "record", readonly sequence: number, readonly record: { readonly recordId: string, readonly from: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly to: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly replyTo: string | null, readonly delivery: "quiet" | "wake" | "steer", readonly createdAt: string, readonly stages: { readonly persisted: string, readonly handedOff: { readonly certainty: "not-dispatched" | "confirmed" | "unknown", readonly evidence?: "pickup" | undefined, readonly intentId?: string | undefined, readonly turnId?: string | undefined, readonly at?: string | undefined }, readonly replied: { readonly recordId?: string | undefined, readonly turnId?: string | undefined, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined, readonly at: string } | null }, readonly idempotencyKey?: string | undefined, readonly runId?: string | undefined, readonly toRole?: string | undefined, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined, readonly path?: string } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined, readonly path?: string }> | undefined, readonly bodyState: "present" | "withdrawn" | "deleted" | "unavailable", readonly projectId: string | null, readonly sequence: number, readonly claim: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly group?: { readonly threadId: string }, readonly mentions?: ReadonlyArray<{ readonly memberId: string }>, readonly targets?: ReadonlyArray<{ readonly key: string, readonly role: "process" | "background", readonly member?: string, readonly participant: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string } | null, readonly scope: { readonly workLineId: string } | null, readonly delivery: "quiet" | "wake" | "steer", readonly stages: { readonly handedOff: { readonly claimId: string, readonly claimedBy: { readonly kind: "thread", readonly environmentId?: string | undefined, readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "user", readonly userId: string, readonly displayName: string } | { readonly kind: "local-owner", readonly environmentId: string, readonly displayName: string } | { readonly kind: "plugin", readonly pluginId: string, readonly displayName: string } | { readonly kind: "remote-agent", readonly principalId: string, readonly displayName: string, readonly memberId?: string, readonly threadId?: string }, readonly turnId?: string | undefined, readonly at: string } | null, readonly replied: { readonly recordId: string, readonly at: string } | null } }>, readonly workItem?: { readonly workItemId: string, readonly commentId?: string }, readonly childReport?: CommunicationChildReport, readonly textPreview: string | null, readonly textTruncated: boolean } } | { readonly kind: "comment", readonly sequence: number, readonly comment: { readonly commentId: string, readonly workItemId: string, readonly projectId: string, readonly sequence: number, readonly revision: number, readonly author: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly body: string | null, readonly bodyWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null }, readonly bodyState: "present" | "erased" | "unavailable", readonly mentions: ReadonlyArray<{ readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string }>, readonly parentId: string | null, readonly createdAt: string, readonly editedAt: string | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
681
+ export type CommunicationPostsMarkReadInput = { readonly projectId: string, readonly requestId?: string, readonly items: ReadonlyArray<CommunicationPostMarkReadItem> };
682
+ export type CommunicationPostsMarkReadOutput = { readonly sequence: number, readonly result: CommunicationPostMarkReadResult, readonly replayed?: boolean };
683
+ export type MembersExternalWakesClaimInput = { readonly requestId?: string };
684
+ export type MembersExternalWakesClaimOutput = { readonly claimed: { readonly intentId: string, readonly projectId: string, readonly seatId: string, readonly pendingBatchId: string, readonly attemptId: string, readonly attemptNumber: number, readonly binding: { readonly connectorPluginId: string, readonly platformAgentRef: string, readonly bindingGeneration: number } } | null, readonly withheld?: { readonly intentId: string, readonly attemptId: string, readonly outcome: "accepted" | "rejected" | "unknown" | null, readonly bindingGeneration: number, readonly reason: "already-handed-out" } };
685
+ export type MembersExternalWakesReportInput = { readonly attemptId: string, readonly requestId?: string, readonly outcome: "accepted" } | { readonly attemptId: string, readonly requestId?: string, readonly outcome: "unknown" } | { readonly attemptId: string, readonly requestId?: string, readonly outcome: "rejected", readonly retryable: boolean };
686
+ export type MembersExternalWakesReportOutput = { readonly attemptId: string, readonly intentId: string, readonly outcome: "accepted" | "rejected" | "unknown", readonly retryable: boolean | null };
687
+ export type MembersExternalWakesListInput = { readonly projectId: string, readonly cursor?: string | null, readonly limit?: number, readonly unreported?: boolean };
688
+ export type MembersExternalWakesListOutput = { readonly items: ReadonlyArray<{ readonly intentId: string, readonly projectId: string, readonly seatId: string, readonly pendingBatchId: string, readonly bindingGeneration: number, readonly connectorPluginId?: string, readonly platformAgentRef?: string, readonly createdAt: string, readonly attemptCount: number, readonly openAttemptId: string | null, readonly latestOutcome: "accepted" | "rejected" | "unknown" | null, readonly latestRetryable: boolean | null }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
689
+ export type MembersExternalWakesGetInput = { readonly projectId: string, readonly intentId: string };
690
+ export type MembersExternalWakesGetOutput = { readonly intentId: string, readonly projectId: string, readonly seatId: string, readonly pendingBatchId: string, readonly bindingGeneration: number, readonly connectorPluginId?: string, readonly platformAgentRef?: string, readonly createdAt: string, readonly attemptCount: number, readonly openAttemptId: string | null, readonly latestOutcome: "accepted" | "rejected" | "unknown" | null, readonly latestRetryable: boolean | null, readonly attempts: ReadonlyArray<{ readonly attemptId: string, readonly attemptNumber: number, readonly connectorPluginId?: string, readonly platformAgentRef?: string, readonly bindingGeneration: number, readonly outcome: "accepted" | "rejected" | "unknown" | null, readonly retryable: boolean | null, readonly createdAt: string, readonly reportedAt: string | null }> };
691
+ export type ThreadsMembersGetInput = { readonly projectId: string, readonly threads: ReadonlyArray<ThreadMemberThreadRefInput> };
1085
692
  export type ThreadsMembersGetOutput = ReadonlyArray<ThreadMembersState>;
1086
- export type ThreadsMembersUpdateInput = { readonly "projectId": string, readonly "thread": ThreadMemberThreadRefInput, readonly "requestId"?: string, readonly "expectedVersion": number, readonly "add"?: ThreadMembersInput, readonly "remove"?: ThreadMembersInput_1 };
1087
- export type ThreadsMembersUpdateOutput = { readonly "sequence": number, readonly "result": ThreadMembersUpdateResult, readonly "replayed"?: boolean };
1088
- export type ProjectsSharedSpacesListInput = Objects_219;
1089
- export type ProjectsSharedSpacesListOutput = Objects_220;
1090
- export type ProjectsSharedSpacesGetInput = { readonly "projectId": string, readonly "spaceId": string };
1091
- export type ProjectsSharedSpacesGetOutput = Objects_221;
1092
- export type ProjectsSharedSpacesSubscribeInput = Objects_219;
1093
- export type ProjectsSharedSpacesSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Objects_220 } | Objects_63;
1094
- export type ProjectsSharedSpacesCreateInput = { readonly "projectId": string, readonly "name": string, readonly "requestId"?: string, readonly "excludePatterns"?: ReadonlyArray<string>, readonly "includedLargeFiles"?: ReadonlyArray<string> };
1095
- export type ProjectsSharedSpacesCreateOutput = Objects_221;
1096
- export type ProjectsSharedSpacesUpdateInput = { readonly "projectId": string, readonly "spaceId": string, readonly "requestId"?: string, readonly "name"?: string, readonly "excludePatterns"?: ReadonlyArray<string>, readonly "includedLargeFiles"?: ReadonlyArray<string> };
1097
- export type ProjectsSharedSpacesUpdateOutput = Objects_221;
1098
- export type ProjectsSharedSpacesTreeListInput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision"?: string, readonly "path"?: string };
1099
- export type ProjectsSharedSpacesTreeListOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision": string | null, readonly "path": string, readonly "entries": ReadonlyArray<{ readonly "path": string, readonly "name": string, readonly "kind": "file" | "directory", readonly "size": number, readonly "oid": string, readonly "executable": boolean }> };
1100
- export type ProjectsSharedSpacesFilesStatInput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision"?: string, readonly "path": string };
1101
- export type ProjectsSharedSpacesFilesStatOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision": string | null, readonly "path": string, readonly "kind": "file" | "directory", readonly "oid": string, readonly "size": number, readonly "executable": boolean, readonly "previewable": boolean };
1102
- export type ProjectsSharedSpacesFilesReadInput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision"?: string, readonly "path": string, readonly "offset"?: number, readonly "maxBytes"?: number };
1103
- export type ProjectsSharedSpacesFilesReadOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision": string | null, readonly "path": string, readonly "oid": string, readonly "totalBytes": number, readonly "offset": number, readonly "bytesRead": number, readonly "truncated": boolean, readonly "isBinary": boolean, readonly "content": string };
1104
- export type ProjectsSharedSpacesFilesIssueAccessInput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision"?: string, readonly "path": string };
1105
- export type ProjectsSharedSpacesFilesIssueAccessOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "revision": string | null, readonly "path": string, readonly "token": string, readonly "blobPath": string, readonly "previewPath": string, readonly "expiresAt": string, readonly "previewSupported": boolean, readonly "fallbackReason"?: "over-large-limit" | "no-converter" };
1106
- export type ProjectsSharedSpacesHistoryListInput = { readonly "projectId": string, readonly "spaceId": string, readonly "cursor"?: string, readonly "limit"?: number };
1107
- export type ProjectsSharedSpacesHistoryListOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "entries": ReadonlyArray<{ readonly "oid": string, readonly "parentOids": ReadonlyArray<string>, readonly "summary": string, readonly "machineLabel": string, readonly "threadId"?: string | null, readonly "source": "create" | "promote" | "turn" | "manual" | "conflict-resolve" | "history-restore", readonly "createdAt": string, readonly "changedPaths": ReadonlyArray<string> }>, readonly "nextCursor": string | null };
1108
- export type ProjectsSharedSpacesHistoryRestoreInput = { readonly "projectId": string, readonly "spaceId": string, readonly "targetOid": string, readonly "expectedHeadOid": string | null, readonly "requestId": string };
1109
- export type ProjectsSharedSpacesHistoryRestoreOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "headOid": string, readonly "restoredFromOid": string };
1110
- export type ProjectsSharedSpacesLocalSyncInput = { readonly "projectId": string, readonly "spaceId": string, readonly "threadId"?: string, readonly "source"?: "manual" | "pre-turn" | "post-turn" | "reconnect", readonly "requestId"?: string };
1111
- export type ProjectsSharedSpacesLocalSyncOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "spaceName"?: string, readonly "headOid": string | null, readonly "pushed": boolean, readonly "pulled": boolean, readonly "queuedOutbox": boolean, readonly "usedCachedOffline"?: boolean, readonly "conflictIds": ReadonlyArray<string>, readonly "openConflictPaths"?: ReadonlyArray<string>, readonly "blockedFiles": ReadonlyArray<Objects_222>, readonly "oversizedFiles": ReadonlyArray<Objects_223>, readonly "skippedNestedGitPaths": ReadonlyArray<string> };
1112
- export type ProjectsSharedSpacesLocalDetachInput = { readonly "projectId": string, readonly "spaceId": string, readonly "confirmDiscardPendingOutbox"?: boolean, readonly "requestId"?: string };
1113
- export type ProjectsSharedSpacesLocalDetachOutput = { readonly "projectId": string, readonly "spaceId": string, readonly "detached": boolean, readonly "discardedOutbox": boolean };
1114
- export type ProjectsSharedSpacesLocalStatusGetInput = Objects_224;
1115
- export type ProjectsSharedSpacesLocalStatusGetOutput = Objects_225;
1116
- export type ProjectsSharedSpacesLocalStatusSubscribeInput = Objects_224;
1117
- export type ProjectsSharedSpacesLocalStatusSubscribeOutput = { readonly "_tag": "snapshot", readonly "value": Objects_225 } | Objects_63;
1118
- export type ProjectsMachinesListEncodedOutput = { readonly "accountDiscovery"?: AccountMachineDiscoveryStatus, readonly "items": ReadonlyArray<{ readonly "platform"?: { readonly "os": "darwin" | "linux" | "windows" | "unknown", readonly "arch": "arm64" | "x64" | "other", readonly "machine"?: unknown }, readonly "serverVersion"?: string, readonly "wireProtocolVersion"?: number, readonly "threadDirectoryIds"?: boolean, readonly "actions"?: ReadonlyArray<{ readonly "actionId": string, readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly "driver"?: string, readonly "displayName"?: string, readonly "description"?: string, readonly "variants"?: Arrays_, readonly "reversible": boolean }>, readonly "autoApproved"?: "all" | ReadonlyArray<string>, readonly "projectTasks"?: ReadonlyArray<{ readonly "name": string, readonly "description"?: string, readonly "variants"?: Arrays_1 }>, readonly "seatHealth"?: SeatHealth, readonly "projectFolderAttached"?: boolean, readonly "environmentId": string, readonly "name": string, readonly "online": boolean, readonly "connection"?: "stream" | "polling" | "none", readonly "memberUpdateRequired"?: true, readonly "joinedAt": string, readonly "lastSeenAt"?: string, readonly "providers": ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName": string, readonly "models": ReadonlyArray<{ readonly "slug": string, readonly "name": string }>, readonly "defaultModel"?: string, readonly "readiness"?: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly "installed"?: boolean, readonly "auth"?: "authenticated" | "unauthenticated" | "unknown", readonly "modelCatalog"?: Objects_20 }>, readonly "providersReportedAt"?: string, readonly "principalId": string, readonly "admittedBy"?: "join-code" | "client-broker" | "account", readonly "keyChangePending"?: boolean, readonly "replacementName"?: string, readonly "previousLastSeenAt"?: string, readonly "restoredFromRemovalId"?: string }>, readonly "removedEnvironmentIds"?: ReadonlyArray<string>, readonly "removedMachines"?: ReadonlyArray<ProjectMachineRemoval_3>, readonly "excludedEnvironmentIds"?: ReadonlyArray<string>, readonly "accountMachines"?: ReadonlyArray<{ readonly "environmentId": string, readonly "name": string, readonly "online": boolean, readonly "connection"?: "stream" | "polling" | "none", readonly "lastSeenAt"?: string, readonly "excluded": boolean, readonly "seatHealth"?: SeatHealth, readonly "removed"?: boolean, readonly "keyChangePending"?: boolean, readonly "pendingAdmission"?: boolean, readonly "replacementName"?: string }> };
1119
- export type ProjectsMachinesThreadsListEncodedOutput = { readonly "items": ReadonlyArray<Objects_226>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "historyEpoch"?: string, readonly "machine": Objects_237 };
1120
- export type ProjectsMachinesThreadsGetEncodedOutput = { readonly "thread": Objects_226, readonly "execution": { readonly "threadId": string, readonly "latestTurn": { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error" } | null, readonly "queue": ReadonlyArray<{ readonly "intentId": string, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "paused"?: true, readonly "position": number, readonly "waitingForCapacity"?: true }>, readonly "truncated": boolean, readonly "queuePaused": boolean, readonly "pendingApprovalCount": number, readonly "pendingUserInputCount": number, readonly "continuation": "active" | "queued" | "blocked" | "paused" | "idle" }, readonly "machine": Objects_237 };
1121
- export type ProjectsMachinesThreadsMessagesListEncodedOutput = Objects_238;
1122
- export type ThreadsListEncodedOutput = { readonly "items": ReadonlyArray<{ readonly "threadId": string, readonly "nativeSessionImported"?: true, readonly "projectId": string, readonly "title": string, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt": string | null, readonly "parentThreadId": string | null, readonly "memberId"?: string, readonly "forkedFrom": Union_67, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "modelSelection": Objects_228, readonly "sessionStatus": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly "sessionFailureCategory"?: string, readonly "latestTurnState": "running" | "interrupted" | "completed" | "error" | null, readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly "worktreePath"?: string | null, readonly "delegationDepth"?: number, readonly "summary"?: Objects_229, readonly "runtime"?: Objects_236 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number, readonly "historyEpoch"?: string };
1123
- export type ThreadsArchivedListEncodedOutput = { readonly "snapshotSequence": number, readonly "projects": ReadonlyArray<Objects_251>, readonly "threads": ReadonlyArray<Objects_253>, readonly "updatedAt": string };
1124
- export type ThreadsHistoryEncodedOutput = { readonly "snapshotSequence": number, readonly "historyEpoch"?: string, readonly "thread": { readonly "id": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_228, readonly "actualModel"?: { readonly "selection": Objects_228, readonly "requested": Objects_228, readonly "source": "reported" | "echo", readonly "turnId"?: string | undefined, readonly "recordedAt": string } | undefined, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode"?: "default" | "plan" | undefined, readonly "nativeModeId"?: string | null | undefined, readonly "branch": string | null, readonly "worktreePath": string | null, readonly "startFolderId"?: string | null | undefined, readonly "folderIds"?: ReadonlyArray<string> | undefined, readonly "linkedPullRequest"?: Union_70, readonly "origin"?: Union_71, readonly "forkedFrom"?: Union_85, readonly "presetId"?: string | null | undefined, readonly "memberId"?: string | undefined, readonly "members"?: ThreadMembers_1, readonly "createdBy"?: Union_72, readonly "creatorPrincipal"?: ThreadCreatorPrincipal_1, readonly "latestTurn": Union_73, readonly "stopRequestedAt"?: string | null, readonly "continuationCheck"?: ThreadContinuationCheckOrNull_1, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt"?: string | null | undefined, readonly "settledOverride"?: "settled" | "active" | null | undefined, readonly "settledAt"?: string | null | undefined, readonly "unsettledAt"?: string | null | undefined, readonly "snoozedUntil"?: string | null | undefined, readonly "snoozedAt"?: string | null | undefined, readonly "pinnedAt"?: string | null | undefined, readonly "pinOrderKey"?: string | null | undefined, readonly "sortOrderKey"?: string | null | undefined, readonly "pendingNotifications"?: ReadonlyArray<{ readonly "dedupeKey": string, readonly "notification": { readonly "kind": "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly "childThreadId": string, readonly "childTitle": string, readonly "remotePost"?: Union_86, readonly "summary": string, readonly "requestId"?: string | undefined, readonly "questionRequest"?: ChildQuestionRequest, readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly "pluginId"?: string | undefined, readonly "recordId"?: string | undefined, readonly "postId"?: string } | { readonly "kind": "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly "sourceThreadId"?: string | undefined, readonly "sourceTitle"?: string | undefined, readonly "childThreadId"?: string | undefined, readonly "childTitle"?: string | undefined, readonly "remotePost"?: Union_86, readonly "summary": string, readonly "requestId"?: string | undefined, readonly "questionRequest"?: ChildQuestionRequest, readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly "pluginId"?: string | undefined, readonly "recordId"?: string | undefined, readonly "postId"?: string }, readonly "queuedAt": string }> | undefined, readonly "executionSelection"?: Objects_207 | undefined, readonly "turnIntents"?: ReadonlyArray<{ readonly "intentId": string, readonly "threadId": string, readonly "sequence": number, readonly "commandId": string, readonly "messageId": string, readonly "paused"?: boolean, readonly "revision"?: number, readonly "action"?: Union_87, readonly "executionSelection"?: { readonly "environmentId": string, readonly "runtimeId": string, readonly "sourceId": string, readonly "profileId": string, readonly "endpointId"?: string, readonly "optionOverrides": Arrays_8, readonly "expectedRevisions": Objects_29 }, readonly "legacyModelSelection": { readonly "instanceId": string, readonly "model": string, readonly "options"?: Arrays_23 | Objects_114 }, readonly "runSettings"?: { readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode": "default" | "plan", readonly "nativeModeId"?: string }, readonly "origin"?: Objects_45 | Objects_240 | Objects_241 | Objects_242 | Objects_243 | Objects_244 | Objects_245 | Objects_246 | Objects_247 | Objects_248 | Objects_249 | Objects_56 | Objects_57 | Objects_250, readonly "sourceBlocks"?: ReadonlyArray<{ readonly "origin"?: Objects_45 | Objects_240 | Objects_241 | Objects_242 | Objects_243 | Objects_244 | Objects_245 | Objects_246 | Objects_247 | Objects_248 | Objects_249 | Objects_56 | Objects_57 | Objects_250, readonly "textOffset": number, readonly "textLength": number }>, readonly "noticesFolded"?: true, readonly "binding"?: { readonly "bindingId": string, readonly "generation": number, readonly "selection": Objects_207, readonly "compatibility": { readonly "match": "native" | "via-adapter" | "unsupported" | "unknown", readonly "reasonCode": "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly "endpointId": string | null, readonly "requestedModelId": string | null, readonly "effectiveOptions": Arrays_8, readonly "conversion": { readonly "id": string, readonly "version": string, readonly "from": string, readonly "to": string, readonly "enabled": boolean, readonly "capabilities": Objects_67, readonly "limitations": ReadonlyArray<string>, readonly "validationRefs": ReadonlyArray<string> } | null, readonly "limitations": ReadonlyArray<string>, readonly "evidence": ReadonlyArray<{ readonly "recordId": string, readonly "freshness": "current" | "stale" }>, readonly "fingerprint": string | null }, readonly "credentialIdentity": { readonly "id": string, readonly "revision": number } | null, readonly "requestedModelId": string, readonly "executedModelId": string | null } | null, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "attempt"?: { readonly "attemptId": string, readonly "intentId": string, readonly "workerEpoch": number, readonly "sourceBindingId": string | null, readonly "targetBindingId": string | null, readonly "nativeLocator": Union_88, readonly "stage": "preparing" | "dispatching" | "running" | "reconciling", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "createdAt": string, readonly "updatedAt": string } | null, readonly "deliveredTurnId"?: string | null, readonly "blockedReason"?: string | null, readonly "replacementIntentId"?: string | null, readonly "createdAt": string, readonly "updatedAt": string }> | undefined, readonly "scheduledWakes"?: ReadonlyArray<{ readonly "wakeId": string, readonly "threadId": string, readonly "dueAt": string, readonly "note": string, readonly "createdBy": { readonly "kind": "thread", readonly "threadId": string } | Objects_69 | { readonly "kind": "plugin", readonly "pluginId": string }, readonly "state": "scheduled" | "fired" | "cancelled", readonly "afterServerUpgrade": boolean, readonly "scheduledOnServerVersion": string | null, readonly "intentId": string | null, readonly "skipped"?: true, readonly "firedAt": string | null, readonly "cancelledAt": string | null, readonly "upgrade"?: { readonly "requestedVersion": string, readonly "updateId": string | null, readonly "expectsVerdict"?: boolean | undefined, readonly "outcome": { readonly "status": "committed" | "rolled-back" | "failed" | "unknown", readonly "targetVersion"?: string | undefined, readonly "fromVersion": string | null, readonly "reason": string | null } | null } | undefined, readonly "repeat"?: Objects_150 | undefined, readonly "createdAt": string, readonly "updatedAt": string }> | undefined, readonly "turnQueuePaused"?: boolean | undefined, readonly "turnQueuePauseSource"?: "automatic-failure" | "manual" | "unknown" | undefined, readonly "acceptedInteractionRequestIds"?: ReadonlyArray<string> | undefined, readonly "titleRegeneration"?: Objects_233 | null | undefined, readonly "titleState"?: Objects_234 | null | undefined, readonly "deletedAt": string | null, readonly "messages": ReadonlyArray<{ readonly "rewrite"?: Union_80, readonly "id": string, readonly "role": "user" | "assistant" | "system", readonly "text": string, readonly "attachments"?: ReadonlyArray<Union_89> | undefined, readonly "turnId": string | null, readonly "streaming": boolean, readonly "author"?: Union_81, readonly "recordId"?: string | undefined, readonly "modelSelection"?: Union_82, readonly "source"?: Union_83, readonly "origin"?: Union_84, readonly "createdAt": string, readonly "updatedAt": string }>, readonly "proposedPlans"?: ReadonlyArray<{ readonly "id": string, readonly "turnId": string | null, readonly "planMarkdown": string, readonly "implementedAt"?: string | null | undefined, readonly "implementationThreadId"?: string | null | undefined, readonly "createdAt": string, readonly "updatedAt": string }> | undefined, readonly "activities": ReadonlyArray<{ readonly "id": string, readonly "tone": "info" | "tool" | "approval" | "error", readonly "kind": string, readonly "summary": string, readonly "payload": unknown, readonly "turnId": string | null, readonly "sequence"?: number | undefined, readonly "createdAt": string }>, readonly "checkpoints": ReadonlyArray<{ readonly "turnId": string, readonly "checkpointTurnCount": number, readonly "checkpointRef": string, readonly "status": "ready" | "missing" | "error", readonly "files": ReadonlyArray<{ readonly "path": string, readonly "kind": string, readonly "additions": number, readonly "deletions": number }>, readonly "assistantMessageId": string | null, readonly "completedAt": string }>, readonly "turnSummaries"?: ReadonlyArray<{ readonly "turnId": string, readonly "userMessageId"?: string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "waitSpans"?: ReadonlyArray<Objects_232>, readonly "runSegments"?: Arrays_10 }> | undefined, readonly "session": Objects_235 | null }, readonly "page"?: { readonly "beforeCursor": string | null, readonly "hasMore": boolean, readonly "afterCursor"?: string | null, readonly "hasNewer"?: boolean, readonly "boundedHistory"?: boolean, readonly "history"?: { readonly "turnIds": ReadonlyArray<string>, readonly "messageIds": ReadonlyArray<string>, readonly "activityIds": ReadonlyArray<string>, readonly "proposedPlanIds": ReadonlyArray<string>, readonly "checkpointTurnIds": ReadonlyArray<string>, readonly "turnIntentIds": ReadonlyArray<string> }, readonly "snapshotSequence": number, readonly "threadSequence"?: number } | undefined };
1125
- export type ThreadsExecutionGetEncodedOutput = { readonly "threadId": string, readonly "projectId": string, readonly "title": string, readonly "modelSelection": Objects_228, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "interactionMode"?: "default" | "plan" | undefined, readonly "branch": string | null, readonly "worktreePath": string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "archivedAt"?: string | null | undefined, readonly "origin": Objects_230 | null, readonly "forkedFrom": { readonly "sourceThreadId": string, readonly "sourceMessageId": string } | null, readonly "session": { readonly "activeTurnId": string | null, readonly "lastError": string | null, readonly "updatedAt": string, readonly "endReason"?: "server-restart", readonly "failureCategory"?: string, readonly "status": string, readonly "providerInstanceId": string | null } | null, readonly "latestTurn": { readonly "turnId": string, readonly "state": "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "assistantMessageId": string | null, readonly "userMessageId"?: string | undefined, readonly "waitSpans"?: Union_74, readonly "runSegments"?: Union_11 } | null, readonly "turnIntents": ReadonlyArray<{ readonly "intentId": string, readonly "threadId": string, readonly "sequence": number, readonly "commandId": string, readonly "messageId": string, readonly "action"?: Union_87, readonly "deliveredTurnId"?: string | null, readonly "createdAt": string, readonly "updatedAt": string, readonly "revision": number, readonly "turn": { readonly "turnId": string | null, readonly "userMessageId": string, readonly "state": "pending" | "running" | "interrupted" | "completed" | "error", readonly "requestedAt": string, readonly "startedAt": string | null, readonly "completedAt": string | null, readonly "waitSpans": ReadonlyArray<Objects_232> } | null, readonly "status": "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "attempt": { readonly "attemptId": string, readonly "workerEpoch": number, readonly "sourceBindingId": string | null, readonly "targetBindingId": string | null, readonly "nativeLocator": Union_88, readonly "stage": "preparing" | "dispatching" | "running" | "reconciling", readonly "deliveryCertainty": "not-dispatched" | "confirmed" | "unknown", readonly "createdAt": string, readonly "updatedAt": string } | null, readonly "blockedReason": string | null, readonly "replacementIntentId": string | null }>, readonly "queuePaused": boolean, readonly "providerProcessLive": boolean, readonly "hasPendingApprovals": boolean, readonly "hasPendingUserInput": boolean, readonly "pendingApprovalCount": number, readonly "pendingUserInputCount": number, readonly "turnStartCount": number } | null;
1126
- export type ThreadsMessagesGetEncodedOutput = { readonly "messageId": string, readonly "role": string, readonly "text": string, readonly "turnId": string | null, readonly "createdAt": string, readonly "modelSelection"?: Objects_228 | undefined, readonly "source"?: Objects_239 | undefined, readonly "attachments": ReadonlyArray<Union_89> } | null;
1127
- export type ThreadsGetEncodedOutput = Objects_253;
1128
- export type ThreadsMessagesListEncodedOutput = Objects_238;
1129
- export type ProjectsListEncodedOutput = ReadonlyArray<Objects_251>;
1130
- export type ProjectsGetEncodedOutput = Objects_251;
1131
- export type MachineSettingsEditorsGetEncodedOutput = { readonly "availableEditors": ReadonlyArray<"file-manager">, readonly "editorDiscovery"?: unknown, readonly "shellRevealInFileManager"?: boolean, readonly "shellRevealInFileManagerKind"?: "finder" | "file-explorer" | "files" };
1132
- export type MachineSettingsProvidersGetEncodedOutput = { readonly "providers": ReadonlyArray<{ readonly "instanceId": string, readonly "driver": string, readonly "displayName"?: string | undefined, readonly "accentColor"?: string | undefined, readonly "continuation"?: { readonly "groupKey": string } | undefined, readonly "showInteractionModeToggle"?: boolean | undefined, readonly "requiresNewThreadForModelChange"?: boolean | undefined, readonly "supportsContextCompaction"?: boolean | undefined, readonly "supportsTextGeneration"?: boolean | undefined, readonly "supportsNativeModeSwitch"?: boolean | undefined, readonly "maxProcesses"?: number, readonly "supportsTurnSteering"?: boolean | undefined, readonly "runtimeModeSwitch"?: "in-session" | "next-turn", readonly "reportsSpawnedAgents"?: boolean, readonly "blocksHostMcpWritesInAuto"?: boolean, readonly "modelSlugAliases"?: Objects_93, readonly "enabled": boolean, readonly "installed": boolean, readonly "version": string | null, readonly "readiness": { readonly "state": "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly "detail"?: string | undefined, readonly "tooOld"?: { readonly "minimumVersion": string } | undefined, readonly "recovery"?: ProviderProbeRecovery }, readonly "auth": { readonly "status": "authenticated" | "unauthenticated" | "unknown", readonly "type"?: string | undefined, readonly "label"?: string | undefined, readonly "email"?: string | undefined }, readonly "checkedAt": string, readonly "configDigest"?: string, readonly "models": ReadonlyArray<{ readonly "slug": string, readonly "name": string, readonly "shortName"?: string | undefined, readonly "subProvider"?: string | undefined, readonly "isCustom": boolean, readonly "isDefault"?: boolean | undefined, readonly "hidden"?: boolean | undefined, readonly "origin"?: "probe" | "custom" | "card", readonly "capabilities": { readonly "optionDescriptors"?: ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "type": "select", readonly "options": ReadonlyArray<{ readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "isDefault"?: boolean | undefined }>, readonly "currentValue"?: string | undefined, readonly "promptInjectedValues"?: ReadonlyArray<string> | undefined } | { readonly "id": string, readonly "label": string, readonly "description"?: string | undefined, readonly "type": "boolean", readonly "currentValue"?: boolean | undefined }> | undefined } | null, readonly "contextWindow"?: number, readonly "contextWindowSource"?: "user" | "agent" }>, readonly "supportsModelCatalogRefresh"?: boolean, readonly "modelCatalog"?: { readonly "state": "unknown" | "confirmed" | "stale" | "failed", readonly "confirmedAt"?: string, readonly "lastFailure"?: { readonly "at": string, readonly "reason": "timeout" | "not-installed" | "unauthenticated" | "error", readonly "detail"?: string } }, readonly "modelCatalogAuthoritative"?: boolean, readonly "slashCommands"?: ReadonlyArray<{ readonly "name": string, readonly "description"?: string | undefined, readonly "input"?: { readonly "hint": string } | undefined }> | undefined, readonly "skills"?: ReadonlyArray<{ readonly "pluginId"?: string | undefined, readonly "name": string, readonly "description"?: string | undefined, readonly "path": string, readonly "scope"?: string | undefined, readonly "enabled": boolean, readonly "displayName"?: string | undefined, readonly "shortDescription"?: string | undefined, readonly "userInvocationOnly"?: boolean | undefined, readonly "userInvocable"?: boolean | undefined }> | undefined, readonly "nativeModes"?: ReadonlyArray<{ readonly "id": string, readonly "name": string, readonly "description"?: string | undefined }>, readonly "currentNativeModeId"?: string, readonly "nativeModeByRuntimeMode"?: { readonly [x: string]: string }, readonly "versionAdvisory"?: { readonly "status": "unknown" | "current" | "behind_latest", readonly "currentVersion": string | null, readonly "latestVersion": string | null, readonly "updateCommand": string | null, readonly "canUpdate"?: boolean | undefined, readonly "checkedAt": string | null, readonly "message": string | null }, readonly "probeNotice"?: { readonly "messageKey": string, readonly "params"?: Objects_96 }, readonly "supportsAuthorizationCodeSignIn"?: boolean, readonly "supportsManagedRuntime"?: boolean, readonly "installCommand"?: string, readonly "installUrl"?: string, readonly "signIn"?: ReadonlyArray<{ readonly "kind": "command", readonly "command": string } | { readonly "kind": "environment", readonly "variable": string }>, readonly "signInCommand"?: string, readonly "updateState"?: { readonly "status": "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly "action"?: "update" | "install" | "sign-in", readonly "startedAt": string | null, readonly "finishedAt": string | null, readonly "message": string | null, readonly "output": string | null, readonly "deviceCode"?: { readonly "userCode": string, readonly "verificationUrl": string } } }> };
1133
- export type MachineSettingsGetEncodedOutput = { readonly "enableProviderUpdateChecks"?: boolean | undefined, readonly "enableAgentBrowserAccess"?: boolean | undefined, readonly "browserRetentionBudgetEnabled"?: boolean | undefined, readonly "machineBrowserDefaultViewport"?: Objects_2 | Objects_3 | Objects_4, readonly "machineBrowserDefaultZoomFactor"?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly "machineBrowserDefaultAppearance"?: "system" | "light" | "dark", readonly "enableAgentThreadDelegation"?: boolean | undefined, readonly "enableAgentSelfDevelopment"?: boolean | undefined, readonly "machineTaskConfirmation"?: { readonly "actionIds": Arrays_16, readonly "projectIds": ReadonlyArray<string>, readonly "remoteProjectTrust"?: ReadonlyArray<{ readonly "homeEnvironmentId": string, readonly "projectId": string }> } | undefined, readonly "enableHeapSnapshot"?: boolean | undefined, readonly "agentThreadDelegationMaxDepth"?: number | undefined, readonly "pluginUpdateCheck"?: boolean | undefined, readonly "backgroundActivityProfile"?: "balanced" | "performance" | "battery-saver" | undefined, readonly "environmentIcon"?: unknown | undefined, readonly "defaultRuntimeMode"?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly "addProjectBaseDirectory"?: string | undefined, readonly "textGenerationModelSelection"?: Objects_228 | null | undefined, readonly "sourceControlWritingStyle"?: { readonly "mode"?: "repo_conventions" | "conventional_commits" | "custom" | undefined, readonly "customInstructions"?: string | undefined, readonly "followChangeRequestTemplates"?: boolean | undefined } | undefined, readonly "sourceControlWriterModelSelection"?: Objects_228 | null | undefined, readonly "dismissedDiscoveredDrivers"?: Arrays_17 | undefined, readonly "defaultProxyId"?: string | null | undefined, readonly "wallpaper"?: { readonly "base": Objects_256, readonly "sidebar": Objects_256 | null, readonly "workspace": Objects_256 | null, readonly "chat": Objects_256 | null } | undefined, readonly "requireManualPairingForNewDevices"?: boolean | undefined, readonly "tunnelForceTcp"?: boolean | undefined, readonly "automaticGitFetchInterval": number, readonly "providerHealthRefreshInterval": number, readonly "backgroundActivity": { readonly "schemaVersion"?: 1 | undefined, readonly "profile"?: "balanced" | "performance" | "battery-saver" | "custom" | undefined, readonly "baseProfile"?: "balanced" | "performance" | "battery-saver", readonly "overrides": Objects_102 }, readonly "npmRegistry": string, readonly "proxies": { readonly [x: string]: { readonly "displayName"?: string | undefined, readonly "protocol": "http" | "https", readonly "host": string, readonly "port": number, readonly "bypass"?: string } }, readonly "plugins": { readonly "mcpServers": { readonly [x: string]: { readonly "name": string, readonly "transport": Union_41, readonly "enabled"?: boolean | undefined, readonly "providers"?: Union_90, readonly "catalogId"?: string | undefined, readonly "oauth"?: Union_42, readonly "addedBy"?: Union_91 } }, readonly "skills": { readonly [x: string]: { readonly "name": string, readonly "source": Objects_104 | Objects_124 | Objects_125, readonly "enabled"?: boolean | undefined, readonly "modelInvocable"?: boolean | undefined, readonly "userInvocable"?: boolean | undefined, readonly "providers"?: Union_92 } } }, readonly "observability": Objects_108 };
1134
- export type MachineSettingsConfigGetEncodedOutput = { readonly "pluginApiVersionRange"?: PluginApiVersionRange, readonly "environment": { readonly "environmentId": string, readonly "label": string, readonly "platform": { readonly "os": "darwin" | "linux" | "windows" | "unknown", readonly "arch": "arm64" | "x64" | "other", readonly "machine"?: unknown }, readonly "serverVersion": string, readonly "wireProtocolVersion"?: number, readonly "minClientWireProtocolVersion"?: number, readonly "capabilities": { readonly "threadDirectoryIds"?: boolean, readonly "threadMembers"?: boolean, readonly "providerMaintenanceCancel"?: boolean, readonly "repositoryIdentity"?: boolean | undefined, readonly "connectionProbe"?: boolean, readonly "reviewDiffFiles"?: boolean, readonly "worktreeProbePaths"?: boolean, readonly "attachmentUploads"?: boolean, readonly "questionAttachments"?: boolean, readonly "threadSettlement"?: boolean, readonly "threadSnooze"?: boolean, readonly "scheduledWakeRepeat"?: boolean, readonly "threadPinning"?: boolean, readonly "threadPinReorder"?: boolean, readonly "manualOrdering"?: boolean, readonly "projectCopies"?: boolean, readonly "projectArchive"?: boolean, readonly "projectCloneInBackground"?: boolean, readonly "projectMultiFolder"?: boolean, readonly "workLines"?: boolean, readonly "workBoard"?: boolean, readonly "workParents"?: boolean, readonly "projectConfig"?: boolean, readonly "groupMessages"?: boolean, readonly "machineTasks"?: boolean, readonly "machineLog"?: boolean, readonly "tolerantMachineActions"?: boolean, readonly "machineAdmissionIdentityCheck"?: boolean, readonly "projectMachineExclusion"?: boolean, readonly "threadTitleRegeneration"?: boolean, readonly "threadRestart"?: boolean, readonly "threadPullRequestLinking"?: boolean, readonly "environmentIcon"?: boolean, readonly "serverSelfUpdate"?: "boot-service" | "respawn" | "desktop-managed", readonly "serverSelfUpdateProgress"?: boolean, readonly "downloadBaseUrl"?: string, readonly "agentActivityPublishing"?: boolean, readonly "noiseIk"?: boolean, readonly "browserArtifactDelivery"?: boolean, readonly "browserPageOperations"?: boolean, readonly "browserZoomOperations"?: boolean, readonly "browserSiteDataOperations"?: boolean, readonly "browserDevtoolsOperations"?: boolean, readonly "browserRuntime"?: boolean, readonly "pluginNotifications"?: boolean, readonly "pluginSignIn"?: boolean, readonly "pluginSlashCommands"?: boolean, readonly "pluginPurge"?: boolean, readonly "pluginUpdateAdvisories"?: boolean }, readonly "noiseStaticPublicKey"?: string }, readonly "auth": { readonly "policy": "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth", readonly "bootstrapMethods": Arrays_18, readonly "sessionMethods": Arrays_19, readonly "sessionCookieName": string }, readonly "cwd": string, readonly "observability": { readonly "logsDirectoryPath": string, readonly "localTracingEnabled": boolean, readonly "otlpTracesUrl"?: string, readonly "otlpTracesEnabled": boolean, readonly "otlpMetricsUrl"?: string, readonly "otlpMetricsEnabled": boolean, readonly "otlpLogsUrl"?: string, readonly "otlpLogsEnabled"?: boolean | undefined, readonly "localTraceFullForced"?: boolean }, readonly "runtimeMaintenanceRoot"?: string };
1135
- export type MachineSettingsRuntimeHealthGetEncodedOutput = { readonly "revision": string, readonly "status": "healthy" | "stopped" | "conflict" | "unknown", readonly "stateDir": string, readonly "runtimeRoot": string, readonly "currentVersion": string | null, readonly "instances": Arrays_20, readonly "repairSupported": boolean, readonly "operation": { readonly "id": string, readonly "policy": "when-idle" | "now", readonly "phase": "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly "targetVersion": string, readonly "startedAt": string, readonly "updatedAt": string, readonly "reason": unknown, readonly "detail"?: string, readonly "backupPath": string | null } | null, readonly "windowsProcessTreeProtection"?: unknown, readonly "windowsProcessTreeProtectionExemptions"?: Arrays_21, readonly "windowsProcessTreeProtectionExplicitBreakaways"?: Arrays_22 };
1136
- export type ProvidersSelectionResolveEncodedOutput = { readonly "modelSelection": Objects_113, readonly "hints"?: ReadonlyArray<{ readonly "kind": "option-unsupported", readonly "model": string | null, readonly "optionId": string, readonly "stored": string | boolean, readonly "effective"?: string | boolean } | { readonly "kind": "effort-moved", readonly "model": string | null, readonly "optionId": string, readonly "from": string, readonly "to": string } | { readonly "kind": "model-replaced", readonly "from": string, readonly "to": string | null }> };
1137
- export type ProvidersSessionsListEncodedOutput = { readonly "sessions": ReadonlyArray<{ readonly "threadId": string, readonly "driver": string, readonly "instanceId": string, readonly "resumeCursor": unknown | null, readonly "status": unknown, readonly "lastSeenAt": string }>, readonly "nextCursor": string | null };
1138
- export type ProjectsConfigGetEncodedOutput = { readonly "actions"?: ReadonlyArray<Objects_252>, readonly "tasks"?: Objects_121, readonly "mcpServers"?: { readonly [x: string]: { readonly "name": string, readonly "transport": { readonly "type": "stdio", readonly "command": string, readonly "args"?: Union_45, readonly "envNames": Arrays_26 } | { readonly "type": "http", readonly "url": string, readonly "headerNames": Arrays_27 } | { readonly "type": "sse", readonly "url": string, readonly "headerNames": Arrays_28 }, readonly "enabled"?: boolean | undefined, readonly "providers"?: Union_90, readonly "catalogId"?: string | undefined, readonly "oauth"?: Union_42, readonly "addedBy"?: Union_91, readonly "missingSecrets"?: Arrays_29 } }, readonly "skills"?: { readonly [x: string]: { readonly "name": string, readonly "source": Union_46, readonly "enabled"?: boolean | undefined, readonly "modelInvocable"?: boolean | undefined, readonly "userInvocable"?: boolean | undefined, readonly "providers"?: Union_92 } }, readonly "projectId": string, readonly "revision": number, readonly "source": "home" | "copy", readonly "homeEnvironmentId"?: string, readonly "syncedAt"?: string, readonly "homeOutdated"?: true };
1139
- export type PluginsInstalledListEncodedOutput = { readonly "plugins": ReadonlyArray<{ readonly "signIns"?: ReadonlyArray<{ readonly "name": string, readonly "label"?: string, readonly "labelKey"?: string, readonly "state": string, readonly "account"?: string, readonly "kind": string, readonly "redirectUri"?: string, readonly "attempt"?: { readonly "attemptId": string, readonly "state": string, readonly "error"?: string } }>, readonly "publicServices"?: ReadonlyArray<{ readonly "service": string, readonly "publicPath": string, readonly "routes": ReadonlyArray<Objects_257> }> | undefined, readonly "slashCommands"?: ReadonlyArray<{ readonly "name": string, readonly "kind": "prompt" | "action", readonly "description"?: string | undefined, readonly "argumentHint"?: string | undefined, readonly "translations"?: Union_47 }> | undefined, readonly "entryId": string, readonly "revision"?: string | undefined, readonly "pluginId": string, readonly "presentation"?: { readonly "displayName": string, readonly "description"?: string | undefined, readonly "translations"?: { readonly [x: string]: { readonly "displayName"?: string | undefined, readonly "description"?: string | undefined } } | undefined, readonly "author"?: string | undefined, readonly "homepage"?: string | undefined, readonly "icon"?: string | undefined } | undefined, readonly "origin": "builtin" | "package" | "directory" | "thread", readonly "location": string | null, readonly "version": string | null, readonly "packageName"?: string | null | undefined, readonly "loadedAt"?: string | undefined, readonly "configRevision"?: number | undefined, readonly "uiDebug"?: Union_48, readonly "uiRevision"?: string | undefined, readonly "uiDigest"?: string | undefined, readonly "assetDigests"?: Union_49, readonly "proxyIds"?: Union_50, readonly "state": "loaded" | "failed" | "stopped" | "disabled", readonly "contributions": Arrays_31, readonly "failure": { readonly "phase": string, readonly "message": string, readonly "kind"?: string | undefined } | null, readonly "threadId": string | null, readonly "runtimeStats"?: Union_51, readonly "removable"?: boolean | undefined, readonly "permissions"?: ReadonlyArray<Objects_127 | { readonly "kind": "fs.read", readonly "paths": ReadonlyArray<string> } | Objects_128 | Objects_129 | Objects_130 | Objects_131 | Objects_132 | { readonly "kind": "process.spawn", readonly "programs": ReadonlyArray<string | { readonly "key": string, readonly "program": string, readonly "displayName"?: string | undefined }>, readonly "maxConcurrent"?: number } | Objects_133 | Objects_134 | { readonly "kind": "network.serve", readonly "services": ReadonlyArray<{ readonly "name": string, readonly "routes": ReadonlyArray<Objects_257> }> } | Objects_135 | Objects_136 | Objects_137 | Objects_138 | Objects_139 | Objects_140 | Objects_141 | Objects_142 | { readonly "kind": "ui.seats", readonly "seats": ReadonlyArray<string> } | { readonly "kind": "commands.dispatch", readonly "commands": ReadonlyArray<string> } | { readonly "kind": string }> | undefined, readonly "ui"?: { readonly "assetsPath": string, readonly "entry"?: string | undefined, readonly "pages"?: ReadonlyArray<{ readonly "id": string, readonly "titleKey": string, readonly "icon"?: string | undefined, readonly "chrome"?: "host" | "own" | undefined, readonly "placements"?: Union_52 }> | undefined, readonly "panels"?: ReadonlyArray<{ readonly "id": string, readonly "titleKey": string, readonly "icon"?: string | undefined }> | undefined, readonly "providerSettings"?: ReadonlyArray<{ readonly "id": string, readonly "driverKind": string, readonly "ownedFields"?: { readonly "add"?: ReadonlyArray<string> | undefined, readonly "edit"?: ReadonlyArray<string> | undefined } | undefined, readonly "ownedEnvironment"?: ReadonlyArray<string> | undefined, readonly "genericFields"?: "inline" | "collapsed" | undefined }> | undefined, readonly "threadAnnotations"?: { readonly "command": string } | undefined, readonly "appearance"?: { readonly "name": string, readonly "wallpaper": string, readonly "dimLight"?: number | undefined, readonly "dimDark"?: number | undefined, readonly "blur"?: number | undefined } | undefined, readonly "toolViews"?: ReadonlyArray<{ readonly "tool": string, readonly "view"?: string | undefined, readonly "placement"?: "inline" | "deliverable" | undefined, readonly "titleKey"?: string | undefined, readonly "titleBy"?: { readonly "arg": string, readonly "titleKeys": { readonly [x: string]: string } } | undefined, readonly "summary"?: ReadonlyArray<string> | undefined }> | undefined, readonly "chatWatchers"?: ReadonlyArray<string> | undefined, readonly "teamViews"?: ReadonlyArray<{ readonly "key": string, readonly "scopes": Arrays_32, readonly "titleKey": string, readonly "icon"?: string | undefined, readonly "order"?: number | undefined }> | undefined, readonly "development"?: { readonly "command": string, readonly "args": Arrays_33, readonly "watch": ReadonlyArray<string> } | undefined } | undefined, readonly "executors"?: ReadonlyArray<unknown> | undefined }>, readonly "nextCursor"?: string | null };
1140
- export type SchedulesListEncodedOutput = { readonly "schedules": ReadonlyArray<{ readonly "scheduleId": string, readonly "projectId": string, readonly "name": string, readonly "prompt": string, readonly "repeat": Objects_150, readonly "modelSelection": Objects_228, readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly "workspace": "project" | "worktree", readonly "presetId"?: string, readonly "enabled": boolean, readonly "nextRunAt": string, readonly "createdBy": Objects_149 | { readonly "kind": "thread", readonly "threadId": string } | { readonly "kind": "plugin", readonly "pluginId": string }, readonly "createdAt": string, readonly "updatedAt": string }> };
1141
- export type ThreadsArtifactsListEncodedOutput = { readonly "items": ReadonlyArray<{ readonly "attachmentId": string, readonly "name": string, readonly "mimeType": string, readonly "sizeBytes": number, readonly "title"?: string | undefined, readonly "note"?: string | undefined, readonly "sourcePath": string, readonly "turnId": string | null, readonly "messageId": string, readonly "deliveredAt": string, readonly "modelSelection"?: Objects_228, readonly "homeSync"?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly "nextCursor": string | null };
1142
- export type MembersListEncodedOutput = { readonly "items": ReadonlyArray<{ readonly "memberId": string, readonly "projectId": string, readonly "kind": "human" | "agent", readonly "name": string, readonly "title": string, readonly "responsibility": string, readonly "avatar": Union_93, readonly "identity": Union_94, readonly "agent": Union_95, readonly "workInstructionsRevision": number | null, readonly "version": number, readonly "createdBy": Union_96, readonly "createdAt": string, readonly "updatedAt": string, readonly "removedAt": string | null, readonly "trial"?: Objects_258 }>, readonly "nextCursor": string | null, readonly "snapshotSequence": number };
1143
- export type MembersGetEncodedOutput = { readonly "member": { readonly "memberId": string, readonly "projectId": string, readonly "kind": "human" | "agent", readonly "name": string, readonly "title": string, readonly "responsibility": string, readonly "avatar": Union_93, readonly "identity": Union_94, readonly "agent": Union_95, readonly "workInstructionsRevision": number | null, readonly "version": number, readonly "createdBy": Union_96, readonly "createdAt": string, readonly "updatedAt": string, readonly "removedAt": string | null, readonly "trial"?: Objects_258, readonly "workInstructions": string | null, readonly "workInstructionsWindow"?: Objects_59 }, readonly "snapshotSequence": number };
693
+ export type ThreadsMembersUpdateInput = { readonly projectId: string, readonly thread: ThreadMemberThreadRefInput, readonly requestId?: string, readonly expectedVersion: number, readonly add?: ThreadMembersInput, readonly remove?: ThreadMembersInput };
694
+ export type ThreadsMembersUpdateOutput = { readonly sequence: number, readonly result: ThreadMembersUpdateResult, readonly replayed?: boolean };
695
+ export type ProjectsSharedSpacesListInput = { readonly projectId: string };
696
+ export type ProjectsSharedSpacesListOutput = { readonly items: ReadonlyArray<{ readonly spaceId: string, readonly projectId: string, readonly name: string, readonly excludePatterns: ReadonlyArray<string>, readonly includedLargeFiles: ReadonlyArray<string>, readonly headOid: string | null, readonly openConflictCount: number, readonly openConflicts: ReadonlyArray<{ readonly conflictId: string, readonly projectId: string, readonly spaceId: string, readonly kind: "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly originalPath: string, readonly copyPath: string | null, readonly baseOid: string | null, readonly homeOid: string | null, readonly memberOid: string | null, readonly homeMachineLabel: string, readonly homeUpdatedAt: string, readonly memberMachineLabel: string, readonly memberUpdatedAt: string, readonly status: "open" | "resolved", readonly resolvedChoice?: "keep-home" | "take-member" | "keep-both" | null, readonly resolvedAt?: string | null }>, readonly createdAt: string, readonly updatedAt: string }> };
697
+ export type ProjectsSharedSpacesGetInput = { readonly projectId: string, readonly spaceId: string };
698
+ export type ProjectsSharedSpacesGetOutput = { readonly spaceId: string, readonly projectId: string, readonly name: string, readonly excludePatterns: ReadonlyArray<string>, readonly includedLargeFiles: ReadonlyArray<string>, readonly headOid: string | null, readonly openConflictCount: number, readonly openConflicts: ReadonlyArray<{ readonly conflictId: string, readonly projectId: string, readonly spaceId: string, readonly kind: "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly originalPath: string, readonly copyPath: string | null, readonly baseOid: string | null, readonly homeOid: string | null, readonly memberOid: string | null, readonly homeMachineLabel: string, readonly homeUpdatedAt: string, readonly memberMachineLabel: string, readonly memberUpdatedAt: string, readonly status: "open" | "resolved", readonly resolvedChoice?: "keep-home" | "take-member" | "keep-both" | null, readonly resolvedAt?: string | null }>, readonly createdAt: string, readonly updatedAt: string };
699
+ export type ProjectsSharedSpacesSubscribeInput = { readonly projectId: string };
700
+ export type ProjectsSharedSpacesSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly spaceId: string, readonly projectId: string, readonly name: string, readonly excludePatterns: ReadonlyArray<string>, readonly includedLargeFiles: ReadonlyArray<string>, readonly headOid: string | null, readonly openConflictCount: number, readonly openConflicts: ReadonlyArray<{ readonly conflictId: string, readonly projectId: string, readonly spaceId: string, readonly kind: "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly originalPath: string, readonly copyPath: string | null, readonly baseOid: string | null, readonly homeOid: string | null, readonly memberOid: string | null, readonly homeMachineLabel: string, readonly homeUpdatedAt: string, readonly memberMachineLabel: string, readonly memberUpdatedAt: string, readonly status: "open" | "resolved", readonly resolvedChoice?: "keep-home" | "take-member" | "keep-both" | null, readonly resolvedAt?: string | null }>, readonly createdAt: string, readonly updatedAt: string }> } } | { readonly _tag: "synchronized" };
701
+ export type ProjectsSharedSpacesCreateInput = { readonly projectId: string, readonly name: string, readonly requestId?: string, readonly excludePatterns?: ReadonlyArray<string>, readonly includedLargeFiles?: ReadonlyArray<string> };
702
+ export type ProjectsSharedSpacesCreateOutput = { readonly spaceId: string, readonly projectId: string, readonly name: string, readonly excludePatterns: ReadonlyArray<string>, readonly includedLargeFiles: ReadonlyArray<string>, readonly headOid: string | null, readonly openConflictCount: number, readonly openConflicts: ReadonlyArray<{ readonly conflictId: string, readonly projectId: string, readonly spaceId: string, readonly kind: "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly originalPath: string, readonly copyPath: string | null, readonly baseOid: string | null, readonly homeOid: string | null, readonly memberOid: string | null, readonly homeMachineLabel: string, readonly homeUpdatedAt: string, readonly memberMachineLabel: string, readonly memberUpdatedAt: string, readonly status: "open" | "resolved", readonly resolvedChoice?: "keep-home" | "take-member" | "keep-both" | null, readonly resolvedAt?: string | null }>, readonly createdAt: string, readonly updatedAt: string };
703
+ export type ProjectsSharedSpacesUpdateInput = { readonly projectId: string, readonly spaceId: string, readonly requestId?: string, readonly name?: string, readonly excludePatterns?: ReadonlyArray<string>, readonly includedLargeFiles?: ReadonlyArray<string> };
704
+ export type ProjectsSharedSpacesUpdateOutput = { readonly spaceId: string, readonly projectId: string, readonly name: string, readonly excludePatterns: ReadonlyArray<string>, readonly includedLargeFiles: ReadonlyArray<string>, readonly headOid: string | null, readonly openConflictCount: number, readonly openConflicts: ReadonlyArray<{ readonly conflictId: string, readonly projectId: string, readonly spaceId: string, readonly kind: "both-modified" | "modify-delete" | "delete-modify" | "file-dir-conflict" | "dir-file-conflict", readonly originalPath: string, readonly copyPath: string | null, readonly baseOid: string | null, readonly homeOid: string | null, readonly memberOid: string | null, readonly homeMachineLabel: string, readonly homeUpdatedAt: string, readonly memberMachineLabel: string, readonly memberUpdatedAt: string, readonly status: "open" | "resolved", readonly resolvedChoice?: "keep-home" | "take-member" | "keep-both" | null, readonly resolvedAt?: string | null }>, readonly createdAt: string, readonly updatedAt: string };
705
+ export type ProjectsSharedSpacesTreeListInput = { readonly projectId: string, readonly spaceId: string, readonly revision?: string, readonly path?: string };
706
+ export type ProjectsSharedSpacesTreeListOutput = { readonly projectId: string, readonly spaceId: string, readonly revision: string | null, readonly path: string, readonly entries: ReadonlyArray<{ readonly path: string, readonly name: string, readonly kind: "file" | "directory", readonly size: number, readonly oid: string, readonly executable: boolean }> };
707
+ export type ProjectsSharedSpacesFilesStatInput = { readonly projectId: string, readonly spaceId: string, readonly revision?: string, readonly path: string };
708
+ export type ProjectsSharedSpacesFilesStatOutput = { readonly projectId: string, readonly spaceId: string, readonly revision: string | null, readonly path: string, readonly kind: "file" | "directory", readonly oid: string, readonly size: number, readonly executable: boolean, readonly previewable: boolean };
709
+ export type ProjectsSharedSpacesFilesReadInput = { readonly projectId: string, readonly spaceId: string, readonly revision?: string, readonly path: string, readonly offset?: number, readonly maxBytes?: number };
710
+ export type ProjectsSharedSpacesFilesReadOutput = { readonly projectId: string, readonly spaceId: string, readonly revision: string | null, readonly path: string, readonly oid: string, readonly totalBytes: number, readonly offset: number, readonly bytesRead: number, readonly truncated: boolean, readonly isBinary: boolean, readonly content: string };
711
+ export type ProjectsSharedSpacesFilesIssueAccessInput = { readonly projectId: string, readonly spaceId: string, readonly revision?: string, readonly path: string };
712
+ export type ProjectsSharedSpacesFilesIssueAccessOutput = { readonly projectId: string, readonly spaceId: string, readonly revision: string | null, readonly path: string, readonly token: string, readonly blobPath: string, readonly previewPath: string, readonly expiresAt: string, readonly previewSupported: boolean, readonly fallbackReason?: "over-large-limit" | "no-converter" };
713
+ export type ProjectsSharedSpacesHistoryListInput = { readonly projectId: string, readonly spaceId: string, readonly cursor?: string, readonly limit?: number };
714
+ export type ProjectsSharedSpacesHistoryListOutput = { readonly projectId: string, readonly spaceId: string, readonly entries: ReadonlyArray<{ readonly oid: string, readonly parentOids: ReadonlyArray<string>, readonly summary: string, readonly machineLabel: string, readonly threadId?: string | null, readonly source: "create" | "promote" | "turn" | "manual" | "conflict-resolve" | "history-restore", readonly createdAt: string, readonly changedPaths: ReadonlyArray<string> }>, readonly nextCursor: string | null };
715
+ export type ProjectsSharedSpacesHistoryRestoreInput = { readonly projectId: string, readonly spaceId: string, readonly targetOid: string, readonly expectedHeadOid: string | null, readonly requestId: string };
716
+ export type ProjectsSharedSpacesHistoryRestoreOutput = { readonly projectId: string, readonly spaceId: string, readonly headOid: string, readonly restoredFromOid: string };
717
+ export type ProjectsSharedSpacesLocalSyncInput = { readonly projectId: string, readonly spaceId: string, readonly threadId?: string, readonly source?: "manual" | "pre-turn" | "post-turn" | "reconnect", readonly requestId?: string };
718
+ export type ProjectsSharedSpacesLocalSyncOutput = { readonly projectId: string, readonly spaceId: string, readonly spaceName?: string, readonly headOid: string | null, readonly pushed: boolean, readonly pulled: boolean, readonly queuedOutbox: boolean, readonly usedCachedOffline?: boolean, readonly conflictIds: ReadonlyArray<string>, readonly openConflictPaths?: ReadonlyArray<string>, readonly blockedFiles: ReadonlyArray<{ readonly relativePath: string, readonly reason: "busy" | "modified-during-stage" | "baseline-mismatch", readonly recoveryPath?: string | null }>, readonly oversizedFiles: ReadonlyArray<{ readonly relativePath: string, readonly size: number, readonly previouslyTracked: boolean }>, readonly skippedNestedGitPaths: ReadonlyArray<string> };
719
+ export type ProjectsSharedSpacesLocalDetachInput = { readonly projectId: string, readonly spaceId: string, readonly confirmDiscardPendingOutbox?: boolean, readonly requestId?: string };
720
+ export type ProjectsSharedSpacesLocalDetachOutput = { readonly projectId: string, readonly spaceId: string, readonly detached: boolean, readonly discardedOutbox: boolean };
721
+ export type ProjectsSharedSpacesLocalStatusGetInput = { readonly projectId: string, readonly spaceId?: string };
722
+ export type ProjectsSharedSpacesLocalStatusGetOutput = { readonly items: ReadonlyArray<{ readonly projectId: string, readonly spaceId: string, readonly folderId: string | null, readonly canonicalRoot: string | null, readonly attachState: "unattached" | "attaching" | "ready" | "detaching" | "failed", readonly lastSyncedOid: string | null, readonly lastSyncedAt: string | null, readonly hasPendingOutbox: boolean, readonly pendingOutboxCommitOid: string | null, readonly blockedFiles: ReadonlyArray<{ readonly relativePath: string, readonly reason: "busy" | "modified-during-stage" | "baseline-mismatch", readonly recoveryPath?: string | null }>, readonly oversizedFiles: ReadonlyArray<{ readonly relativePath: string, readonly size: number, readonly previouslyTracked: boolean }>, readonly skippedNestedGitPaths: ReadonlyArray<string>, readonly inFlightPhase: "preflight" | "pulling" | "staging" | "pushing" | "materializing" | null, readonly bytesTransferred: number, readonly bytesTotal: number, readonly lastError: string | null }> };
723
+ export type ProjectsSharedSpacesLocalStatusSubscribeInput = { readonly projectId: string, readonly spaceId?: string };
724
+ export type ProjectsSharedSpacesLocalStatusSubscribeOutput = { readonly _tag: "snapshot", readonly value: { readonly items: ReadonlyArray<{ readonly projectId: string, readonly spaceId: string, readonly folderId: string | null, readonly canonicalRoot: string | null, readonly attachState: "unattached" | "attaching" | "ready" | "detaching" | "failed", readonly lastSyncedOid: string | null, readonly lastSyncedAt: string | null, readonly hasPendingOutbox: boolean, readonly pendingOutboxCommitOid: string | null, readonly blockedFiles: ReadonlyArray<{ readonly relativePath: string, readonly reason: "busy" | "modified-during-stage" | "baseline-mismatch", readonly recoveryPath?: string | null }>, readonly oversizedFiles: ReadonlyArray<{ readonly relativePath: string, readonly size: number, readonly previouslyTracked: boolean }>, readonly skippedNestedGitPaths: ReadonlyArray<string>, readonly inFlightPhase: "preflight" | "pulling" | "staging" | "pushing" | "materializing" | null, readonly bytesTransferred: number, readonly bytesTotal: number, readonly lastError: string | null }> } } | { readonly _tag: "synchronized" };
725
+ export type ProjectsMachinesListEncodedOutput = { readonly accountDiscovery?: AccountMachineDiscoveryStatus, readonly items: ReadonlyArray<{ readonly platform?: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: unknown }, readonly serverVersion?: string, readonly wireProtocolVersion?: number, readonly threadDirectoryIds?: boolean, readonly actions?: ReadonlyArray<{ readonly actionId: string, readonly kind: "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task", readonly driver?: string, readonly displayName?: string, readonly description?: string, readonly variants?: ReadonlyArray<string>, readonly reversible: boolean }>, readonly autoApproved?: "all" | ReadonlyArray<string>, readonly projectTasks?: ReadonlyArray<{ readonly name: string, readonly description?: string, readonly variants?: ReadonlyArray<string> }>, readonly seatHealth?: SeatHealth, readonly projectFolderAttached?: boolean, readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly memberUpdateRequired?: true, readonly joinedAt: string, readonly lastSeenAt?: string, readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string }>, readonly defaultModel?: string, readonly readiness?: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly installed?: boolean, readonly auth?: "authenticated" | "unauthenticated" | "unknown", readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly failedAt?: string } }>, readonly providersReportedAt?: string, readonly principalId: string, readonly admittedBy?: "join-code" | "client-broker" | "account", readonly keyChangePending?: boolean, readonly replacementName?: string, readonly previousLastSeenAt?: string, readonly restoredFromRemovalId?: string }>, readonly removedEnvironmentIds?: ReadonlyArray<string>, readonly removedMachines?: ReadonlyArray<ProjectMachineRemoval_1>, readonly excludedEnvironmentIds?: ReadonlyArray<string>, readonly accountMachines?: ReadonlyArray<{ readonly environmentId: string, readonly name: string, readonly online: boolean, readonly connection?: "stream" | "polling" | "none", readonly lastSeenAt?: string, readonly excluded: boolean, readonly seatHealth?: SeatHealth, readonly removed?: boolean, readonly keyChangePending?: boolean, readonly pendingAdmission?: boolean, readonly replacementName?: string }> };
726
+ export type ProjectsMachinesThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
727
+ export type ProjectsMachinesThreadsGetEncodedOutput = { readonly thread: { readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }, readonly machineId: string }, readonly execution: { readonly threadId: string, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error" } | null, readonly queue: ReadonlyArray<{ readonly intentId: string, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly paused?: true, readonly position: number, readonly waitingForCapacity?: true }>, readonly truncated: boolean, readonly queuePaused: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly continuation: "active" | "queued" | "blocked" | "paused" | "idle" }, readonly machine: { readonly machineId: string, readonly name: string, readonly online: boolean, readonly serverVersion?: string, readonly wireProtocolVersion?: number } };
728
+ export type ProjectsMachinesThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
729
+ export type ThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly threadId: string, readonly nativeSessionImported?: true, readonly projectId: string, readonly title: string, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt: string | null, readonly parentThreadId: string | null, readonly memberId?: string, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly sessionStatus: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error" | null, readonly sessionFailureCategory?: string, readonly latestTurnState: "running" | "interrupted" | "completed" | "error" | null, readonly status: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle", readonly worktreePath?: string | null, readonly delegationDepth?: number, readonly summary?: { readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly presetId?: string | null | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly continuationCheck?: ThreadContinuationCheckOrNull_1 }, readonly runtime?: { readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly historyEpoch?: string };
730
+ export type ThreadsArchivedListEncodedOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
731
+ export type ThreadsHistoryEncodedOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly actualModel?: { readonly selection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly requested: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans?: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt?: string | null | undefined, readonly implementationThreadId?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
732
+ export type ThreadsExecutionGetEncodedOutput = { readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly origin: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string } | null, readonly session: { readonly activeTurnId: string | null, readonly lastError: string | null, readonly updatedAt: string, readonly endReason?: "server-restart", readonly failureCategory?: string, readonly status: string, readonly providerInstanceId: string | null } | null, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly turnIntents: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly deliveredTurnId?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly revision: number, readonly turn: { readonly turnId: string | null, readonly userMessageId: string, readonly state: "pending" | "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt: { readonly attemptId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly blockedReason: string | null, readonly replacementIntentId: string | null }>, readonly queuePaused: boolean, readonly providerProcessLive: boolean, readonly hasPendingApprovals: boolean, readonly hasPendingUserInput: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly turnStartCount: number } | null;
733
+ export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
734
+ export type ThreadsGetEncodedOutput = { readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined };
735
+ export type ThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
736
+ export type ProjectsListEncodedOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
737
+ export type ProjectsGetEncodedOutput = { readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined };
738
+ export type MachineSettingsEditorsGetEncodedOutput = { readonly availableEditors: ReadonlyArray<"file-manager">, readonly editorDiscovery?: unknown, readonly shellRevealInFileManager?: boolean, readonly shellRevealInFileManagerKind?: "finder" | "file-explorer" | "files" };
739
+ export type MachineSettingsProvidersGetEncodedOutput = { readonly providers: ReadonlyArray<{ readonly instanceId: string, readonly driver: string, readonly displayName?: string | undefined, readonly accentColor?: string | undefined, readonly continuation?: { readonly groupKey: string } | undefined, readonly showInteractionModeToggle?: boolean | undefined, readonly requiresNewThreadForModelChange?: boolean | undefined, readonly supportsContextCompaction?: boolean | undefined, readonly supportsTextGeneration?: boolean | undefined, readonly supportsNativeModeSwitch?: boolean | undefined, readonly maxProcesses?: number, readonly supportsTurnSteering?: boolean | undefined, readonly runtimeModeSwitch?: "in-session" | "next-turn", readonly reportsSpawnedAgents?: boolean, readonly blocksHostMcpWritesInAuto?: boolean, readonly modelSlugAliases?: { readonly [x: string]: string }, readonly enabled: boolean, readonly installed: boolean, readonly version: string | null, readonly readiness: { readonly state: "ready" | "unchecked" | "checking" | "disabled" | "not-installed" | "unauthenticated" | "error", readonly detail?: string | undefined, readonly tooOld?: { readonly minimumVersion: string } | undefined, readonly recovery?: ProviderProbeRecovery }, readonly auth: { readonly status: "authenticated" | "unauthenticated" | "unknown", readonly type?: string | undefined, readonly label?: string | undefined, readonly email?: string | undefined }, readonly checkedAt: string, readonly configDigest?: string, readonly models: ReadonlyArray<{ readonly slug: string, readonly name: string, readonly shortName?: string | undefined, readonly subProvider?: string | undefined, readonly isCustom: boolean, readonly isDefault?: boolean | undefined, readonly hidden?: boolean | undefined, readonly origin?: "probe" | "custom" | "card", readonly capabilities: { readonly optionDescriptors?: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "select", readonly options: ReadonlyArray<{ readonly id: string, readonly label: string, readonly description?: string | undefined, readonly isDefault?: boolean | undefined }>, readonly currentValue?: string | undefined, readonly promptInjectedValues?: ReadonlyArray<string> | undefined } | { readonly id: string, readonly label: string, readonly description?: string | undefined, readonly type: "boolean", readonly currentValue?: boolean | undefined }> | undefined } | null, readonly contextWindow?: number, readonly contextWindowSource?: "user" | "agent" }>, readonly supportsModelCatalogRefresh?: boolean, readonly modelCatalog?: { readonly state: "unknown" | "confirmed" | "stale" | "failed", readonly confirmedAt?: string, readonly lastFailure?: { readonly at: string, readonly reason: "timeout" | "not-installed" | "unauthenticated" | "error", readonly detail?: string } }, readonly modelCatalogAuthoritative?: boolean, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly description?: string | undefined, readonly input?: { readonly hint: string } | undefined }> | undefined, readonly skills?: ReadonlyArray<{ readonly pluginId?: string | undefined, readonly name: string, readonly description?: string | undefined, readonly path: string, readonly scope?: string | undefined, readonly enabled: boolean, readonly displayName?: string | undefined, readonly shortDescription?: string | undefined, readonly userInvocationOnly?: boolean | undefined, readonly userInvocable?: boolean | undefined }> | undefined, readonly nativeModes?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly description?: string | undefined }>, readonly currentNativeModeId?: string, readonly nativeModeByRuntimeMode?: { readonly [x: string]: string }, readonly versionAdvisory?: { readonly status: "unknown" | "current" | "behind_latest", readonly currentVersion: string | null, readonly latestVersion: string | null, readonly updateCommand: string | null, readonly canUpdate?: boolean | undefined, readonly checkedAt: string | null, readonly message: string | null }, readonly probeNotice?: { readonly messageKey: string, readonly params?: { readonly [x: string]: string } }, readonly supportsAuthorizationCodeSignIn?: boolean, readonly supportsManagedRuntime?: boolean, readonly installCommand?: string, readonly installUrl?: string, readonly signIn?: ReadonlyArray<{ readonly kind: "command", readonly command: string } | { readonly kind: "environment", readonly variable: string }>, readonly signInCommand?: string, readonly updateState?: { readonly status: "idle" | "queued" | "running" | "succeeded" | "failed" | "unchanged" | "cancelled", readonly action?: "update" | "install" | "sign-in", readonly startedAt: string | null, readonly finishedAt: string | null, readonly message: string | null, readonly output: string | null, readonly deviceCode?: { readonly userCode: string, readonly verificationUrl: string } } }> };
740
+ export type MachineSettingsGetEncodedOutput = { readonly enableProviderUpdateChecks?: boolean | undefined, readonly enableAgentBrowserAccess?: boolean | undefined, readonly browserRetentionBudgetEnabled?: boolean | undefined, readonly machineBrowserDefaultViewport?: { readonly _tag: "fill" } | { readonly _tag: "freeform", readonly width: number, readonly height: number } | { readonly _tag: "preset", readonly width: number, readonly height: number, readonly presetId: "iphone-se" | "iphone-xr" | "iphone-12-pro" | "iphone-14-pro-max" | "pixel-7" | "samsung-galaxy-s8-plus" | "samsung-galaxy-s20-ultra" | "ipad-mini" | "ipad-air" | "ipad-pro" | "surface-pro-7" | "surface-duo" | "galaxy-z-fold-5" | "asus-zenbook-fold" | "samsung-galaxy-a51-71" | "nest-hub" | "nest-hub-max" | "desktop-1920x1080" | "desktop-1440x900" | "laptop-1366x768" | "laptop-1280x800" | "ipad-pro-11" | "iphone-15-pro" | "pixel-8" | "galaxy-s24" }, readonly machineBrowserDefaultZoomFactor?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5, readonly machineBrowserDefaultAppearance?: "system" | "light" | "dark", readonly enableAgentThreadDelegation?: boolean | undefined, readonly enableAgentSelfDevelopment?: boolean | undefined, readonly machineTaskConfirmation?: { readonly actionIds: ReadonlyArray<string>, readonly projectIds: ReadonlyArray<string>, readonly remoteProjectTrust?: ReadonlyArray<{ readonly homeEnvironmentId: string, readonly projectId: string }> } | undefined, readonly enableHeapSnapshot?: boolean | undefined, readonly agentThreadDelegationMaxDepth?: number | undefined, readonly pluginUpdateCheck?: boolean | undefined, readonly backgroundActivityProfile?: "balanced" | "performance" | "battery-saver" | undefined, readonly environmentIcon?: unknown | undefined, readonly defaultRuntimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly addProjectBaseDirectory?: string | undefined, readonly textGenerationModelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null | undefined, readonly sourceControlWritingStyle?: { readonly mode?: "repo_conventions" | "conventional_commits" | "custom" | undefined, readonly customInstructions?: string | undefined, readonly followChangeRequestTemplates?: boolean | undefined } | undefined, readonly sourceControlWriterModelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null | undefined, readonly dismissedDiscoveredDrivers?: ReadonlyArray<string> | undefined, readonly defaultProxyId?: string | null | undefined, readonly wallpaper?: { readonly base: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number }, readonly sidebar: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly workspace: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null, readonly chat: { readonly source: "none" | "custom" | "plugin", readonly customId: string | null, readonly pluginId: string | null, readonly dimLight: number, readonly dimDark: number, readonly blur: number } | null } | undefined, readonly requireManualPairingForNewDevices?: boolean | undefined, readonly automaticGitFetchInterval: number, readonly providerHealthRefreshInterval: number, readonly backgroundActivity: { readonly schemaVersion?: 1 | undefined, readonly profile?: "balanced" | "performance" | "battery-saver" | "custom" | undefined, readonly baseProfile?: "balanced" | "performance" | "battery-saver", readonly overrides: { readonly automaticGitFetchInterval?: number, readonly providerHealthRefreshInterval?: number, readonly hostPowerMonitorActiveInterval?: number, readonly hostPowerMonitorIdleInterval?: number, readonly idleClientTtl?: number, readonly pauseWhenHostLocked?: boolean, readonly pauseWhenHostLowPower?: boolean, readonly pauseWhenClientLowPower?: boolean, readonly pauseWhenOnBattery?: boolean } }, readonly npmRegistry: string, readonly proxies: { readonly [x: string]: { readonly displayName?: string | undefined, readonly protocol: "http" | "https", readonly host: string, readonly port: number, readonly bypass?: string } }, readonly plugins: { readonly mcpServers: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly argCount: number, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined } }, readonly skills: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline" } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable?: boolean | undefined, readonly userInvocable?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined } } }, readonly observability: { readonly otlpTracesUrl: string, readonly otlpMetricsUrl: string, readonly otlpLogsUrl: string, readonly fullTraceUntil?: number } };
741
+ export type MachineSettingsConfigGetEncodedOutput = { readonly pluginApiVersionRange?: PluginApiVersionRange, readonly environment: { readonly environmentId: string, readonly label: string, readonly platform: { readonly os: "darwin" | "linux" | "windows" | "unknown", readonly arch: "arm64" | "x64" | "other", readonly machine?: unknown }, readonly serverVersion: string, readonly wireProtocolVersion?: number, readonly minClientWireProtocolVersion?: number, readonly capabilities: { readonly threadDirectoryIds?: boolean, readonly threadMembers?: boolean, readonly providerMaintenanceCancel?: boolean, readonly repositoryIdentity?: boolean | undefined, readonly connectionProbe?: boolean, readonly reviewDiffFiles?: boolean, readonly worktreeProbePaths?: boolean, readonly attachmentUploads?: boolean, readonly questionAttachments?: boolean, readonly threadSettlement?: boolean, readonly threadSnooze?: boolean, readonly scheduledWakeRepeat?: boolean, readonly threadPinning?: boolean, readonly threadPinReorder?: boolean, readonly manualOrdering?: boolean, readonly projectCopies?: boolean, readonly projectArchive?: boolean, readonly projectCloneInBackground?: boolean, readonly projectMultiFolder?: boolean, readonly workLines?: boolean, readonly workBoard?: boolean, readonly workParents?: boolean, readonly projectConfig?: boolean, readonly groupMessages?: boolean, readonly machineTasks?: boolean, readonly machineLog?: boolean, readonly tolerantMachineActions?: boolean, readonly machineAdmissionIdentityCheck?: boolean, readonly projectMachineExclusion?: boolean, readonly threadTitleRegeneration?: boolean, readonly threadRestart?: boolean, readonly liveCommandOutput?: boolean, readonly threadPullRequestLinking?: boolean, readonly environmentIcon?: boolean, readonly serverSelfUpdate?: "boot-service" | "respawn" | "desktop-managed", readonly serverSelfUpdateProgress?: boolean, readonly downloadBaseUrl?: string, readonly agentActivityPublishing?: boolean, readonly noiseIk?: boolean, readonly browserArtifactDelivery?: boolean, readonly browserPageOperations?: boolean, readonly browserZoomOperations?: boolean, readonly browserSiteDataOperations?: boolean, readonly browserDevtoolsOperations?: boolean, readonly browserRuntime?: boolean, readonly pluginNotifications?: boolean, readonly pluginSignIn?: boolean, readonly pluginSlashCommands?: boolean, readonly pluginPurge?: boolean, readonly pluginUpdateAdvisories?: boolean }, readonly noiseStaticPublicKey?: string, readonly environmentPublicKey?: string }, readonly auth: { readonly policy: "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth", readonly bootstrapMethods: ReadonlyArray<"desktop-bootstrap" | "one-time-token">, readonly sessionMethods: ReadonlyArray<"browser-session-cookie" | "bearer-access-token" | "dpop-access-token">, readonly sessionCookieName: string }, readonly cwd: string, readonly observability: { readonly logsDirectoryPath: string, readonly localTracingEnabled: boolean, readonly otlpTracesUrl?: string, readonly otlpTracesEnabled: boolean, readonly otlpMetricsUrl?: string, readonly otlpMetricsEnabled: boolean, readonly otlpLogsUrl?: string, readonly otlpLogsEnabled?: boolean | undefined, readonly localTraceFullForced?: boolean }, readonly runtimeMaintenanceRoot?: string };
742
+ export type MachineSettingsRuntimeHealthGetEncodedOutput = { readonly revision: string, readonly status: "healthy" | "stopped" | "conflict" | "unknown", readonly stateDir: string, readonly runtimeRoot: string, readonly currentVersion: string | null, readonly instances: ReadonlyArray<{ readonly pid: number, readonly startToken: string, readonly launcher: { readonly pid: number, readonly startToken: string } | null, readonly version: string | null, readonly port: number | null, readonly stateDir: string, readonly managed: boolean, readonly ready: boolean, readonly supportsDrain: boolean, readonly activity: "idle" | "busy" | "unknown", readonly tasks: ReadonlyArray<{ readonly threadId: string, readonly turnId: string | null }> }>, readonly repairSupported: boolean, readonly operation: { readonly id: string, readonly policy: "when-idle" | "now", readonly phase: "waiting" | "stopping" | "backing-up" | "starting" | "verifying" | "succeeded" | "cancelled" | "failed", readonly targetVersion: string, readonly startedAt: string, readonly updatedAt: string, readonly reason: unknown, readonly detail?: string, readonly backupPath: string | null } | null, readonly windowsProcessTreeProtection?: unknown, readonly windowsProcessTreeProtectionExemptions?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }>, readonly windowsProcessTreeProtectionExplicitBreakaways?: ReadonlyArray<{ readonly pluginId?: string, readonly program: string }> };
743
+ export type ProvidersSelectionResolveEncodedOutput = { readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly hints?: ReadonlyArray<{ readonly kind: "option-unsupported", readonly model: string | null, readonly optionId: string, readonly stored: string | boolean, readonly effective?: string | boolean } | { readonly kind: "effort-moved", readonly model: string | null, readonly optionId: string, readonly from: string, readonly to: string } | { readonly kind: "model-replaced", readonly from: string, readonly to: string | null }> };
744
+ export type ProvidersSessionsListEncodedOutput = { readonly sessions: ReadonlyArray<{ readonly threadId: string, readonly driver: string, readonly instanceId: string, readonly resumeCursor: unknown | null, readonly status: unknown, readonly lastSeenAt: string }>, readonly nextCursor: string | null };
745
+ export type ProjectsConfigGetEncodedOutput = { readonly actions?: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly tasks?: { readonly [x: string]: { readonly command: string, readonly args?: ReadonlyArray<string>, readonly cwd?: string, readonly description?: string, readonly timeoutSeconds?: number, readonly variants?: { readonly [x: string]: ReadonlyArray<string> } } }, readonly mcpServers?: { readonly [x: string]: { readonly name: string, readonly transport: { readonly type: "stdio", readonly command: string, readonly args?: ReadonlyArray<string> | undefined, readonly envNames: ReadonlyArray<string> } | { readonly type: "http", readonly url: string, readonly headerNames: ReadonlyArray<string> } | { readonly type: "sse", readonly url: string, readonly headerNames: ReadonlyArray<string> }, readonly enabled?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined, readonly catalogId?: string | undefined, readonly oauth?: { readonly status: "none" | "required" | "authorized" } | undefined, readonly addedBy?: { readonly kind: "plugin", readonly pluginId: string } | undefined, readonly missingSecrets?: ReadonlyArray<string> } }, readonly skills?: { readonly [x: string]: { readonly name: string, readonly source: { readonly kind: "inline", readonly skillMd: string } | { readonly kind: "builtin", readonly id: string } | { readonly kind: "catalog", readonly catalogId: string, readonly version: string }, readonly enabled?: boolean | undefined, readonly modelInvocable?: boolean | undefined, readonly userInvocable?: boolean | undefined, readonly providers?: { readonly [x: string]: boolean } | undefined } }, readonly projectId: string, readonly revision: number, readonly source: "home" | "copy", readonly homeEnvironmentId?: string, readonly syncedAt?: string, readonly homeOutdated?: true };
746
+ export type PluginsInstalledListEncodedOutput = { readonly plugins: ReadonlyArray<{ readonly canonicalMachineEntryId?: string, readonly signIns?: ReadonlyArray<{ readonly name: string, readonly label?: string, readonly labelKey?: string, readonly state: string, readonly account?: string, readonly kind: string, readonly redirectUri?: string, readonly attempt?: { readonly attemptId: string, readonly state: string, readonly error?: string } }>, readonly publicServices?: ReadonlyArray<{ readonly service: string, readonly publicPath: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> | undefined, readonly slashCommands?: ReadonlyArray<{ readonly name: string, readonly kind: "prompt" | "action", readonly description?: string | undefined, readonly argumentHint?: string | undefined, readonly translations?: { readonly [x: string]: { readonly description?: string | undefined, readonly argumentHint?: string | undefined } } | undefined }> | undefined, readonly entryId: string, readonly revision?: string | undefined, readonly pluginId: string, readonly presentation?: { readonly displayName: string, readonly description?: string | undefined, readonly translations?: { readonly [x: string]: { readonly displayName?: string | undefined, readonly description?: string | undefined } } | undefined, readonly author?: string | undefined, readonly homepage?: string | undefined, readonly icon?: string | undefined } | undefined, readonly origin: "builtin" | "package" | "directory" | "project" | "thread", readonly location: string | null, readonly version: string | null, readonly packageName?: string | null | undefined, readonly loadedAt?: string | undefined, readonly configRevision?: number | undefined, readonly uiDebug?: { readonly enabled: boolean, readonly phase: "idle" | "building" | "error", readonly error: string | null } | undefined, readonly uiRevision?: string | undefined, readonly uiDigest?: string | undefined, readonly assetDigests?: { readonly [x: string]: string } | undefined, readonly proxyIds?: ReadonlyArray<string> | undefined, readonly state: "loaded" | "failed" | "stopped" | "disabled", readonly contributions: ReadonlyArray<{ readonly kind: "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation", readonly name: string, readonly role?: string }>, readonly failure: { readonly phase: string, readonly message: string, readonly kind?: string | undefined } | null, readonly threadId: string | null, readonly projectId?: string | null | undefined, readonly projectPlugin?: { readonly needsApproval: boolean, readonly conflictWithMachine: boolean, readonly conflictChoice?: "project" | "machine" | undefined } | undefined, readonly runtimeStats?: { readonly eventsHandled: number, readonly toolCalls: number, readonly processesSpawned?: number | undefined, readonly lastEventAt: string | null } | undefined, readonly removable?: boolean | undefined, readonly permissions?: ReadonlyArray<{ readonly kind: "executor" } | { readonly kind: "fs.read", readonly paths: ReadonlyArray<string> } | { readonly kind: "providers.homes" } | { readonly kind: "workspace.read" } | { readonly kind: "work.read" } | { readonly kind: "work.writeAsPerson" } | { readonly kind: "members.read" } | { readonly kind: "process.spawn", readonly programs: ReadonlyArray<string | { readonly key: string, readonly program: string, readonly displayName?: string }>, readonly maxConcurrent?: number } | { readonly kind: "process.workspace" } | { readonly kind: "ports.register" } | { readonly kind: "network.serve", readonly services: ReadonlyArray<{ readonly name: string, readonly routes: ReadonlyArray<{ readonly path: string, readonly methods?: ReadonlyArray<"GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS">, readonly websocket?: boolean }> }> } | { readonly kind: "systemPrompt" } | { readonly kind: "tools.guard" } | { readonly kind: "workspace.write" } | { readonly kind: "sessionProjection" } | { readonly kind: "memory.read" } | { readonly kind: "communication.read" } | { readonly kind: "agentPresets" } | { readonly kind: "threads.user" } | { readonly kind: "ui.seats", readonly seats: ReadonlyArray<string> } | { readonly kind: "commands.dispatch", readonly commands: ReadonlyArray<string> } | { readonly kind: string }> | undefined, readonly ui?: { readonly assetsPath: string, readonly entry?: string | undefined, readonly pages?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined, readonly chrome?: "host" | "own" | undefined, readonly placements?: ReadonlyArray<"web-pages" | "mobile-home" | "mobile-pages"> | undefined }> | undefined, readonly panels?: ReadonlyArray<{ readonly id: string, readonly titleKey: string, readonly icon?: string | undefined }> | undefined, readonly providerSettings?: ReadonlyArray<{ readonly id: string, readonly driverKind: string, readonly ownedFields?: { readonly add?: ReadonlyArray<string> | undefined, readonly edit?: ReadonlyArray<string> | undefined } | undefined, readonly ownedEnvironment?: ReadonlyArray<string> | undefined, readonly genericFields?: "inline" | "collapsed" | undefined }> | undefined, readonly threadAnnotations?: { readonly command: string } | undefined, readonly appearance?: { readonly name: string, readonly wallpaper: string, readonly dimLight?: number | undefined, readonly dimDark?: number | undefined, readonly blur?: number | undefined } | undefined, readonly toolViews?: ReadonlyArray<{ readonly tool: string, readonly view?: string | undefined, readonly placement?: "inline" | "deliverable" | undefined, readonly titleKey?: string | undefined, readonly titleBy?: { readonly arg: string, readonly titleKeys: { readonly [x: string]: string } } | undefined, readonly summary?: ReadonlyArray<string> | undefined }> | undefined, readonly chatWatchers?: ReadonlyArray<string> | undefined, readonly teamViews?: ReadonlyArray<{ readonly key: string, readonly scopes: ReadonlyArray<"team" | "project">, readonly titleKey: string, readonly icon?: string | undefined, readonly order?: number | undefined }> | undefined, readonly development?: { readonly command: string, readonly args: ReadonlyArray<string>, readonly watch: ReadonlyArray<string> } | undefined } | undefined, readonly executors?: ReadonlyArray<unknown> | undefined }>, readonly nextCursor?: string | null };
747
+ export type SchedulesListEncodedOutput = { readonly schedules: ReadonlyArray<{ readonly scheduleId: string, readonly projectId: string, readonly name: string, readonly prompt: string, readonly repeat: { readonly cron: string, readonly timeZone: string }, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly workspace: "project" | "worktree", readonly presetId?: string, readonly enabled: boolean, readonly nextRunAt: string, readonly createdBy: { readonly kind: "person" } | { readonly kind: "thread", readonly threadId: string } | { readonly kind: "plugin", readonly pluginId: string, readonly entryId?: string }, readonly createdAt: string, readonly updatedAt: string }> };
748
+ export type ThreadsArtifactsListEncodedOutput = { readonly items: ReadonlyArray<{ readonly attachmentId: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly title?: string | undefined, readonly note?: string | undefined, readonly sourcePath: string, readonly turnId: string | null, readonly messageId: string, readonly deliveredAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly homeSync?: "delivered" | "pending" | "needs-attention" | "refused" }>, readonly nextCursor: string | null };
749
+ export type MembersListEncodedOutput = { readonly items: ReadonlyArray<{ readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string } }>, readonly nextCursor: string | null, readonly snapshotSequence: number };
750
+ export type MembersGetEncodedOutput = { readonly member: { readonly memberId: string, readonly projectId: string, readonly kind: "human" | "agent", readonly name: string, readonly title: string, readonly responsibility: string, readonly avatar: { readonly pattern: string, readonly color: string } | null, readonly identity: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | null, readonly agent: { readonly environmentId: string, readonly modelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly threadId?: string } | null, readonly workInstructionsRevision: number | null, readonly version: number, readonly createdBy: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly createdAt: string, readonly updatedAt: string, readonly removedAt: string | null, readonly trial?: { readonly outcome: "passed" | "failed" | "skipped" | "not-run", readonly at: string, readonly by: { readonly kind: "human", readonly principal: { readonly kind: "account", readonly userId: string } | { readonly kind: "local-owner", readonly environmentId: string } } | { readonly kind: "local-cli", readonly environmentId: string } | { readonly kind: "seat", readonly seatId: string } | { readonly kind: "agent", readonly threadId: string } | { readonly kind: "remote-agent", readonly principalId: string } | { readonly kind: "plugin", readonly pluginId: string } | { readonly kind: "system" }, readonly summary?: string }, readonly workInstructions: string | null, readonly workInstructionsWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }, readonly snapshotSequence: number };
1144
751
 
1145
752
  export const COMMUNICATION_RECORDS_READ_LIMIT = 100;
1146
753
  export const MEMBER_INSTRUCTIONS_MAX_BYTES = 32768;
@@ -1658,6 +1265,8 @@ export interface PluginDataPorts {
1658
1265
  /** Data capability: projects.reorder. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.reorder"]}} */
1659
1266
  readonly reorder: (input: ProjectsReorderInput) => Promise<ProjectsReorderOutput>;
1660
1267
  readonly folders: {
1268
+ /** Data capability: projects.folders.confirmTarget. Plugin admission: {"restricted":"operator-only"} */
1269
+ readonly confirmTarget: (input: ProjectsFoldersConfirmTargetInput) => Promise<ProjectsFoldersConfirmTargetOutput>;
1661
1270
  /** Data capability: projects.folders.detach. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.folder.detach"]}} */
1662
1271
  readonly detach: (input: ProjectsFoldersDetachInput) => Promise<ProjectsFoldersDetachOutput>;
1663
1272
  /** Data capability: projects.folders.relocate. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["project.folder.relocate"]}} */
@@ -1823,9 +1432,15 @@ export interface PluginDataPorts {
1823
1432
  /** Data capability: plugins.installed.setEnabled. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["plugins.installed.setEnabled"]}} */
1824
1433
  readonly setEnabled: (input: PluginsInstalledSetEnabledInput) => Promise<PluginsInstalledSetEnabledOutput>;
1825
1434
  };
1435
+ readonly project: {
1436
+ /** Data capability: plugins.project.installMachine. Plugin admission: {"restricted":"not-for-plugins"} */
1437
+ readonly installMachine: (input: PluginsProjectInstallMachineInput) => Promise<PluginsProjectInstallMachineOutput>;
1438
+ /** Data capability: plugins.project.scan. Plugin admission: {"restricted":"not-for-plugins"} */
1439
+ readonly scan: (input: PluginsProjectScanInput) => Promise<PluginsProjectScanOutput>;
1440
+ };
1826
1441
  readonly sessionProjections: {
1827
1442
  /** Data capability: plugins.sessionProjections.get. Plugin admission: {"require":{"kind":"sessionProjection"},"policy":"session-projection"} */
1828
- readonly get: (input: Omit<PluginsSessionProjectionsGetInput, "pluginId">) => Promise<PluginsSessionProjectionsGetOutput>;
1443
+ readonly get: (input: Omit<PluginsSessionProjectionsGetInput, "pluginId" | "entryId">) => Promise<PluginsSessionProjectionsGetOutput>;
1829
1444
  /** Data capability: plugins.sessionProjections.set. Plugin admission: {"require":{"kind":"sessionProjection"},"policy":"session-projection"} */
1830
1445
  readonly set: (input: PluginsSessionProjectionsSetInput) => Promise<PluginsSessionProjectionsSetOutput>;
1831
1446
  };
@@ -2240,7 +1855,7 @@ export interface PluginUiDataReads {
2240
1855
  readonly "providers.accounts.probe": { readonly input: ProvidersAccountsProbeInput; readonly output: ProvidersAccountsProbeOutput };
2241
1856
  readonly "projects.config.get": { readonly input: ProjectsConfigGetInput; readonly output: ProjectsConfigGetEncodedOutput };
2242
1857
  readonly "plugins.installed.list": { readonly input: PluginsInstalledListInput; readonly output: PluginsInstalledListEncodedOutput };
2243
- readonly "plugins.sessionProjections.get": { readonly input: Omit<PluginsSessionProjectionsGetInput, "pluginId">; readonly output: PluginsSessionProjectionsGetOutput };
1858
+ readonly "plugins.sessionProjections.get": { readonly input: Omit<PluginsSessionProjectionsGetInput, "pluginId" | "entryId">; readonly output: PluginsSessionProjectionsGetOutput };
2244
1859
  readonly "plugins.notifications.list": { readonly input: PluginsNotificationsListInput; readonly output: PluginsNotificationsListOutput };
2245
1860
  readonly "plugins.settingsCards.list": { readonly input: PluginsSettingsCardsListInput; readonly output: PluginsSettingsCardsListOutput };
2246
1861
  readonly "plugins.skills.list": { readonly input: PluginsSkillsListInput; readonly output: PluginsSkillsListOutput };