| 1 | |
| 2 | export type Json = null | boolean | number | string | Json[] | { [key: string]: Json | undefined } |
| 3 | |
| 4 | export type ApprovalKind = 'third_party_search' |
| 5 | |
| 6 | export type DynamicToolCallContent = { type: 'input_text'; text: string } | { type: 'input_image'; image_url: string } |
| 7 | |
| 8 | export type DynamicToolCallParams = { |
| 9 | thread_id: string |
| 10 | turn_id: string |
| 11 | call_id: string |
| 12 | namespace?: string |
| 13 | tool: string |
| 14 | arguments: Json |
| 15 | [key: string]: Json | undefined |
| 16 | } |
| 17 | |
| 18 | export type DynamicToolCallResult = { |
| 19 | success: boolean |
| 20 | content?: DynamicToolCallContent[] |
| 21 | [key: string]: Json | undefined |
| 22 | } |
| 23 | |
| 24 | export type DynamicToolItemStatus = 'in_progress' | 'completed' | 'failed' |
| 25 | |
| 26 | export type DynamicToolSpec = { |
| 27 | namespace?: (string | null) |
| 28 | name: string |
| 29 | description: string |
| 30 | input_schema: Json |
| 31 | defer_loading?: boolean |
| 32 | [key: string]: Json | undefined |
| 33 | } |
| 34 | |
| 35 | export type DynamicToolSpecOutput = { |
| 36 | namespace?: string |
| 37 | name: string |
| 38 | description: string |
| 39 | input_schema: Json |
| 40 | defer_loading: boolean |
| 41 | [key: string]: Json | undefined |
| 42 | } |
| 43 | |
| 44 | export type FleetProfileDocument = { |
| 45 | id: string |
| 46 | kind: FleetProfileDocumentKind |
| 47 | origin: string |
| 48 | path: (string | null) |
| 49 | text: string |
| 50 | revision: string |
| 51 | writable: boolean |
| 52 | refusal_reason: (string | null) |
| 53 | } |
| 54 | |
| 55 | export type FleetProfileDocumentKind = 'profile' | 'fleet' |
| 56 | |
| 57 | export type RuntimeCapabilities = { |
| 58 | client_token_intents: boolean |
| 59 | account_session: boolean |
| 60 | account_model_owner: boolean |
| 61 | session_provider_keys: boolean |
| 62 | threads: boolean |
| 63 | thread_graph: boolean |
| 64 | thread_create_idempotency: boolean |
| 65 | exact_route_thread_create: boolean |
| 66 | thread_idle_precondition: boolean |
| 67 | thread_patch_undo_turn_id: boolean |
| 68 | thread_model_hotswitch: boolean |
| 69 | thread_scoped_reads: boolean |
| 70 | thread_scoped_git_writes: boolean |
| 71 | thread_scoped_file_writes: boolean |
| 72 | thread_scoped_snapshots: boolean |
| 73 | thread_scoped_terminals: boolean |
| 74 | worktrees: boolean |
| 75 | job_operations: boolean |
| 76 | thread_shell_consent: boolean |
| 77 | thread_standing_context: boolean |
| 78 | workspace_customizations: boolean |
| 79 | turns: boolean |
| 80 | turn_operation_idempotency: boolean |
| 81 | turn_operation_lookup: boolean |
| 82 | watch_event_turns: boolean |
| 83 | structured_review_turns: boolean |
| 84 | structured_review_version: number |
| 85 | automation_mutation_preconditions: boolean |
| 86 | turn_image_inputs: boolean |
| 87 | turn_output_token_limit: boolean |
| 88 | profile_constitution: boolean |
| 89 | turn_steer: boolean |
| 90 | turn_interrupt: boolean |
| 91 | event_replay: boolean |
| 92 | external_tools: boolean |
| 93 | environments: boolean |
| 94 | worker_runtime: boolean |
| 95 | fleet_run_create: boolean |
| 96 | fleet_worker_provider_pins: boolean |
| 97 | fleet_mission_board: boolean |
| 98 | fleet_worker_model_pool: boolean |
| 99 | thread_fleet_members: boolean |
| 100 | thread_fleet_member_durable_operations_v1: boolean |
| 101 | fleet_run_start: boolean |
| 102 | fleet_event_replay: boolean |
| 103 | fleet_event_stream: boolean |
| 104 | fleet_local_target: boolean |
| 105 | fleet_worker_thread_executor: boolean |
| 106 | thread_goals: boolean |
| 107 | memory: boolean |
| 108 | mcp_server_management: boolean |
| 109 | skill_lifecycle: boolean |
| 110 | skill_detail: boolean |
| 111 | plugin_management: boolean |
| 112 | agent_mail: boolean |
| 113 | event_stream_resume: boolean |
| 114 | permission_rules: boolean |
| 115 | approval_remember_workspace: boolean |
| 116 | approval_grants_list: boolean |
| 117 | search_consent: boolean |
| 118 | worker_wake_and_revive: boolean |
| 119 | fleet_worker_model_hotswitch: boolean |
| 120 | [key: string]: Json | undefined |
| 121 | } |
| 122 | |
| 123 | export type RuntimeEventEnvelope = { |
| 124 | schema_version: number |
| 125 | seq: number |
| 126 | event: string |
| 127 | kind: string |
| 128 | thread_id: string |
| 129 | turn_id: (string | null) |
| 130 | item_id: (string | null) |
| 131 | timestamp: string |
| 132 | created_at?: string |
| 133 | payload: Json |
| 134 | [key: string]: Json | undefined |
| 135 | } |
| 136 | |
| 137 | export type RuntimeExperimentalCapabilities = { |
| 138 | environments: boolean |
| 139 | [key: string]: Json | undefined |
| 140 | } |
| 141 | |
| 142 | export type RuntimeImageInput = { |
| 143 | mime: string |
| 144 | dataBase64: string |
| 145 | } |
| 146 | |
| 147 | export type ThreadLoadedListParams = { |
| 148 | cursor?: (string | null) |
| 149 | limit?: (number | null) |
| 150 | [key: string]: Json | undefined |
| 151 | } |
| 152 | |
| 153 | export type ThreadLoadedListResponse = { |
| 154 | data: string[] |
| 155 | nextCursor: (string | null) |
| 156 | [key: string]: Json | undefined |
| 157 | } |
| 158 | |
| 159 | export type ThreadSetNameParams = { |
| 160 | threadId: string |
| 161 | name: string |
| 162 | [key: string]: Json | undefined |
| 163 | } |
| 164 | |
| 165 | export type ThreadSetNameResponse = Record<string, never> |
| 166 | |
| 167 | export type TurnEnvironmentParams = { |
| 168 | environment_id: string |
| 169 | cwd: string |
| 170 | [key: string]: Json | undefined |
| 171 | } |
| 172 |