@parcha/agentrun-client 0.1.0-beta.52 → 0.1.0-beta.54

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.
@@ -13,6 +13,9 @@ export type Agent = {
13
13
  home_etag: string;
14
14
  created_at: Timestamp;
15
15
  updated_at: Timestamp;
16
+ source_sync?: {
17
+ moved: true;
18
+ };
16
19
  native_status?: {
17
20
  runtime: "claude-code" | "codex";
18
21
  project: string;
@@ -77,6 +80,7 @@ export type Agent = {
77
80
  name: string;
78
81
  title?: string;
79
82
  description?: string;
83
+ resource?: "list" | "templates" | "read";
80
84
  input_schema: Record<string, unknown>;
81
85
  annotations?: Record<string, unknown>;
82
86
  }>;
@@ -186,6 +190,7 @@ export type DefinitionInput = {
186
190
  surface?: "code" | "tools";
187
191
  exec?: boolean;
188
192
  record?: boolean;
193
+ needs?: Array<string>;
189
194
  };
190
195
  tool_settings?: {
191
196
  read?: {
@@ -281,7 +286,7 @@ export type DefinitionInput = {
281
286
  repick?: boolean;
282
287
  repick_max_chars?: number;
283
288
  };
284
- checkout?: "pull_request" | "none";
289
+ checkout?: "pull_request" | "repository" | "none";
285
290
  max_requests?: number;
286
291
  };
287
292
  export type JsonObject = Record<string, unknown>;
@@ -422,6 +427,8 @@ export type RunSummary = {
422
427
  kind: "agentic" | "workflow";
423
428
  archived_at: string | null;
424
429
  labels?: Record<string, string>;
430
+ stopped_for?: "budget" | null;
431
+ budget_refused_calls?: number;
425
432
  effort?: Effort;
426
433
  error?: RunError | null;
427
434
  learning?: {
@@ -593,6 +600,7 @@ export type RunCreateInline = {
593
600
  max_cost_usd?: number;
594
601
  quote_id?: string;
595
602
  model_key?: string;
603
+ keys?: Record<string, string>;
596
604
  mcp_auth?: Record<string, {
597
605
  headers: Record<string, string>;
598
606
  } | ComposioRunBinding>;
@@ -710,6 +718,8 @@ export type Run = {
710
718
  kind: "agentic" | "workflow";
711
719
  archived_at: string | null;
712
720
  labels?: Record<string, string>;
721
+ stopped_for?: "budget" | null;
722
+ budget_refused_calls?: number;
713
723
  approvals?: "ask" | "never";
714
724
  last_progress_at?: string | null;
715
725
  recordings?: Array<{
@@ -843,6 +853,7 @@ export type MessageCreate = {
843
853
  mcp_auth?: Record<string, {
844
854
  headers: Record<string, string>;
845
855
  } | ComposioRunBinding>;
856
+ keys?: Record<string, string>;
846
857
  };
847
858
  export type MessageResult = {
848
859
  run_id: Id;
@@ -859,6 +870,7 @@ export type RunCreate = {
859
870
  max_cost_usd?: number;
860
871
  quote_id?: string;
861
872
  model_key?: string;
873
+ keys?: Record<string, string>;
862
874
  mcp_auth?: Record<string, {
863
875
  headers: Record<string, string>;
864
876
  } | ComposioRunBinding>;
@@ -871,6 +883,10 @@ export type RunCreate = {
871
883
  };
872
884
  hold?: boolean;
873
885
  hold_minutes?: number;
886
+ trigger_firing?: {
887
+ trigger_id: string;
888
+ firing_id: string;
889
+ };
874
890
  };
875
891
  export type StopResult = {
876
892
  run_id: Id;
@@ -1228,6 +1244,12 @@ export type Features = {
1228
1244
  };
1229
1245
  public_url?: boolean;
1230
1246
  };
1247
+ sdk_runs?: {
1248
+ started_at: boolean;
1249
+ title: boolean;
1250
+ labels: boolean;
1251
+ max_open_s: number;
1252
+ };
1231
1253
  };
1232
1254
  export type Meter = "tokens" | "agent_time" | "browser_time" | "disk" | "tools" | "learning";
1233
1255
  export type Region = {
@@ -1279,6 +1301,52 @@ export type UsageLine = {
1279
1301
  };
1280
1302
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
1281
1303
  export type ArchiveAgentResponse = Record<string, unknown>;
1304
+ /** Choose the existing destination account for a required source tool (POST /agents/{agent_id}/source/tools). */
1305
+ export type BindSourceToolBody = {
1306
+ tool: string;
1307
+ server: string;
1308
+ };
1309
+ export type BindSourceToolResponse = {
1310
+ project_issues?: Array<{
1311
+ run_id: string;
1312
+ entry_id: number;
1313
+ status: "pending" | "conflict" | "uncertain";
1314
+ reason?: string;
1315
+ } | {
1316
+ run_id: string;
1317
+ entry_id: null;
1318
+ attempt_epoch: number;
1319
+ status: "pending" | "conflict" | "uncertain";
1320
+ reason?: string;
1321
+ }>;
1322
+ enabled: boolean;
1323
+ moved: boolean;
1324
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
1325
+ blockers: Array<{
1326
+ code: string;
1327
+ message: string;
1328
+ path?: string;
1329
+ }>;
1330
+ snapshot?: string;
1331
+ current_snapshot?: string;
1332
+ connection?: {
1333
+ connector_id: string;
1334
+ target_id: string;
1335
+ };
1336
+ files?: number;
1337
+ bytes?: number;
1338
+ skills?: number;
1339
+ tools?: number;
1340
+ tool_connections?: Array<{
1341
+ name: string;
1342
+ ready: boolean;
1343
+ selected?: string;
1344
+ candidates: Array<{
1345
+ name: string;
1346
+ auth: string;
1347
+ }>;
1348
+ }>;
1349
+ };
1282
1350
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
1283
1351
  export type ConnectNativeBody = {
1284
1352
  project: string;
@@ -1287,6 +1355,10 @@ export type ConnectNativeBody = {
1287
1355
  kind: "project" | "agent" | "profile";
1288
1356
  name?: string;
1289
1357
  };
1358
+ source_sync?: {
1359
+ version: 1;
1360
+ scope: string;
1361
+ };
1290
1362
  };
1291
1363
  export type ConnectNativeResponse = {
1292
1364
  agent: Agent;
@@ -1498,6 +1570,48 @@ export type GetNativeResponse = {
1498
1570
  };
1499
1571
  } | null;
1500
1572
  };
1573
+ /** Read source sync and managed Move readiness (GET /agents/{agent_id}/source). */
1574
+ export type GetSourceSyncResponse = {
1575
+ project_issues?: Array<{
1576
+ run_id: string;
1577
+ entry_id: number;
1578
+ status: "pending" | "conflict" | "uncertain";
1579
+ reason?: string;
1580
+ } | {
1581
+ run_id: string;
1582
+ entry_id: null;
1583
+ attempt_epoch: number;
1584
+ status: "pending" | "conflict" | "uncertain";
1585
+ reason?: string;
1586
+ }>;
1587
+ enabled: boolean;
1588
+ moved: boolean;
1589
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
1590
+ blockers: Array<{
1591
+ code: string;
1592
+ message: string;
1593
+ path?: string;
1594
+ }>;
1595
+ snapshot?: string;
1596
+ current_snapshot?: string;
1597
+ connection?: {
1598
+ connector_id: string;
1599
+ target_id: string;
1600
+ };
1601
+ files?: number;
1602
+ bytes?: number;
1603
+ skills?: number;
1604
+ tools?: number;
1605
+ tool_connections?: Array<{
1606
+ name: string;
1607
+ ready: boolean;
1608
+ selected?: string;
1609
+ candidates: Array<{
1610
+ name: string;
1611
+ auth: string;
1612
+ }>;
1613
+ }>;
1614
+ };
1501
1615
  /** List agents (GET /agents). */
1502
1616
  export interface ListAgentsParams {
1503
1617
  limit?: number;
@@ -1706,6 +1820,175 @@ export type ListLearningPromotionsResponse = {
1706
1820
  } | null;
1707
1821
  }>;
1708
1822
  };
1823
+ /** Move the same agent to server-managed execution from its complete synchronized setup (POST /agents/{agent_id}/source/move). */
1824
+ export type MoveSourceAgentBody = Record<string, never>;
1825
+ export type MoveSourceAgentResponse = {
1826
+ agent: Agent;
1827
+ source: {
1828
+ project_issues?: Array<{
1829
+ run_id: string;
1830
+ entry_id: number;
1831
+ status: "pending" | "conflict" | "uncertain";
1832
+ reason?: string;
1833
+ } | {
1834
+ run_id: string;
1835
+ entry_id: null;
1836
+ attempt_epoch: number;
1837
+ status: "pending" | "conflict" | "uncertain";
1838
+ reason?: string;
1839
+ }>;
1840
+ enabled: boolean;
1841
+ moved: boolean;
1842
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
1843
+ blockers: Array<{
1844
+ code: string;
1845
+ message: string;
1846
+ path?: string;
1847
+ }>;
1848
+ snapshot?: string;
1849
+ current_snapshot?: string;
1850
+ connection?: {
1851
+ connector_id: string;
1852
+ target_id: string;
1853
+ };
1854
+ files?: number;
1855
+ bytes?: number;
1856
+ skills?: number;
1857
+ tools?: number;
1858
+ tool_connections?: Array<{
1859
+ name: string;
1860
+ ready: boolean;
1861
+ selected?: string;
1862
+ candidates: Array<{
1863
+ name: string;
1864
+ auth: string;
1865
+ }>;
1866
+ }>;
1867
+ };
1868
+ };
1869
+ /** The agent's current revision as a template package (GET /agents/{agent_id}/package). */
1870
+ export type GetAgentPackageResponse = {
1871
+ name: string;
1872
+ files: Array<{
1873
+ path: string;
1874
+ encoding: "utf8" | "base64";
1875
+ content: string;
1876
+ }>;
1877
+ sha256: string;
1878
+ report: {
1879
+ blocked: Array<{
1880
+ kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "secrets" | "input_schema" | "budget" | "package";
1881
+ name: string;
1882
+ reason: string;
1883
+ }>;
1884
+ remade: Array<{
1885
+ kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "secrets" | "input_schema" | "budget" | "package";
1886
+ name: string;
1887
+ reason: string;
1888
+ }>;
1889
+ };
1890
+ };
1891
+ /** Use an explicitly reviewed source snapshot while retaining the prior managed revision in history (POST /agents/{agent_id}/source/resolve). */
1892
+ export type ResolveSourceSyncBody = {
1893
+ revision: string;
1894
+ snapshot: string;
1895
+ };
1896
+ export type ResolveSourceSyncResponse = {
1897
+ agent: Agent;
1898
+ source: {
1899
+ project_issues?: Array<{
1900
+ run_id: string;
1901
+ entry_id: number;
1902
+ status: "pending" | "conflict" | "uncertain";
1903
+ reason?: string;
1904
+ } | {
1905
+ run_id: string;
1906
+ entry_id: null;
1907
+ attempt_epoch: number;
1908
+ status: "pending" | "conflict" | "uncertain";
1909
+ reason?: string;
1910
+ }>;
1911
+ enabled: boolean;
1912
+ moved: boolean;
1913
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
1914
+ blockers: Array<{
1915
+ code: string;
1916
+ message: string;
1917
+ path?: string;
1918
+ }>;
1919
+ snapshot?: string;
1920
+ current_snapshot?: string;
1921
+ connection?: {
1922
+ connector_id: string;
1923
+ target_id: string;
1924
+ };
1925
+ files?: number;
1926
+ bytes?: number;
1927
+ skills?: number;
1928
+ tools?: number;
1929
+ tool_connections?: Array<{
1930
+ name: string;
1931
+ ready: boolean;
1932
+ selected?: string;
1933
+ candidates: Array<{
1934
+ name: string;
1935
+ auth: string;
1936
+ }>;
1937
+ }>;
1938
+ };
1939
+ };
1940
+ /** Acknowledge exact unresolved run receipts and allow later runs to use the saved project (POST /agents/{agent_id}/source/project-review). */
1941
+ export type ReviewSourceProjectBody = {
1942
+ receipts: Array<{
1943
+ run_id: string;
1944
+ entry_id: number;
1945
+ } | {
1946
+ run_id: string;
1947
+ entry_id: null;
1948
+ attempt_epoch: number;
1949
+ }>;
1950
+ };
1951
+ export type ReviewSourceProjectResponse = {
1952
+ project_issues?: Array<{
1953
+ run_id: string;
1954
+ entry_id: number;
1955
+ status: "pending" | "conflict" | "uncertain";
1956
+ reason?: string;
1957
+ } | {
1958
+ run_id: string;
1959
+ entry_id: null;
1960
+ attempt_epoch: number;
1961
+ status: "pending" | "conflict" | "uncertain";
1962
+ reason?: string;
1963
+ }>;
1964
+ enabled: boolean;
1965
+ moved: boolean;
1966
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
1967
+ blockers: Array<{
1968
+ code: string;
1969
+ message: string;
1970
+ path?: string;
1971
+ }>;
1972
+ snapshot?: string;
1973
+ current_snapshot?: string;
1974
+ connection?: {
1975
+ connector_id: string;
1976
+ target_id: string;
1977
+ };
1978
+ files?: number;
1979
+ bytes?: number;
1980
+ skills?: number;
1981
+ tools?: number;
1982
+ tool_connections?: Array<{
1983
+ name: string;
1984
+ ready: boolean;
1985
+ selected?: string;
1986
+ candidates: Array<{
1987
+ name: string;
1988
+ auth: string;
1989
+ }>;
1990
+ }>;
1991
+ };
1709
1992
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
1710
1993
  export interface ListRunsParams {
1711
1994
  limit?: number;
@@ -1714,6 +1997,51 @@ export interface ListRunsParams {
1714
1997
  label?: string;
1715
1998
  }
1716
1999
  export type ListRunsResponse = RunList;
2000
+ /** Enable or pause this agent’s source sync (PATCH /agents/{agent_id}/source). */
2001
+ export type SetSourceSyncBody = {
2002
+ enabled: boolean;
2003
+ };
2004
+ export type SetSourceSyncResponse = {
2005
+ project_issues?: Array<{
2006
+ run_id: string;
2007
+ entry_id: number;
2008
+ status: "pending" | "conflict" | "uncertain";
2009
+ reason?: string;
2010
+ } | {
2011
+ run_id: string;
2012
+ entry_id: null;
2013
+ attempt_epoch: number;
2014
+ status: "pending" | "conflict" | "uncertain";
2015
+ reason?: string;
2016
+ }>;
2017
+ enabled: boolean;
2018
+ moved: boolean;
2019
+ state: "needs_connection" | "paused" | "syncing" | "needs_attention" | "ready" | "moved" | "conflict";
2020
+ blockers: Array<{
2021
+ code: string;
2022
+ message: string;
2023
+ path?: string;
2024
+ }>;
2025
+ snapshot?: string;
2026
+ current_snapshot?: string;
2027
+ connection?: {
2028
+ connector_id: string;
2029
+ target_id: string;
2030
+ };
2031
+ files?: number;
2032
+ bytes?: number;
2033
+ skills?: number;
2034
+ tools?: number;
2035
+ tool_connections?: Array<{
2036
+ name: string;
2037
+ ready: boolean;
2038
+ selected?: string;
2039
+ candidates: Array<{
2040
+ name: string;
2041
+ auth: string;
2042
+ }>;
2043
+ }>;
2044
+ };
1717
2045
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
1718
2046
  export type UnarchiveAgentResponse = Record<string, unknown>;
1719
2047
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -1816,6 +2144,10 @@ export type EnrollCliLearningBody = {
1816
2144
  runtime: "codex" | "claude-code";
1817
2145
  project: string;
1818
2146
  name?: string;
2147
+ source_sync?: {
2148
+ version: 1;
2149
+ scope: string;
2150
+ };
1819
2151
  };
1820
2152
  export type EnrollCliLearningResponse = {
1821
2153
  connection_id: string;
@@ -1950,13 +2282,18 @@ export type EnrollRemoteConnectorBody = {
1950
2282
  capabilities?: {
1951
2283
  native_execution?: boolean;
1952
2284
  history_import?: boolean;
2285
+ config_sync?: boolean;
1953
2286
  };
2287
+ connector_id?: string;
1954
2288
  };
1955
2289
  export type EnrollRemoteConnectorResponse = {
1956
2290
  enrollment_token: string;
1957
2291
  expires_at: string;
1958
2292
  workspace_id: "local";
1959
2293
  };
2294
+ /** Read or establish this explicitly authorized source sync grant without re-enabling a paused grant (POST /connectors/{connector_id}/targets/{target_id}/sync/grant). */
2295
+ export type GrantSourceSyncBody = Record<string, never>;
2296
+ export type GrantSourceSyncResponse = Record<string, unknown>;
1960
2297
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
1961
2298
  export type ImportRemoteHistoryBody = {
1962
2299
  sessions: Array<Record<string, unknown>>;
@@ -2009,6 +2346,11 @@ export type ImportRemoteTargetBody = {
2009
2346
  };
2010
2347
  };
2011
2348
  history_only?: boolean;
2349
+ cli_adoption?: {
2350
+ connection_id: string;
2351
+ credential_epoch: string;
2352
+ proof: string;
2353
+ };
2012
2354
  };
2013
2355
  export type ImportRemoteTargetResponse = {
2014
2356
  agent_id: string;
@@ -2059,6 +2401,7 @@ export type ListRemoteConnectorsResponse = {
2059
2401
  observe: true;
2060
2402
  native_execution: boolean;
2061
2403
  history_import: boolean;
2404
+ config_sync: boolean;
2062
2405
  };
2063
2406
  targets: Array<Record<string, unknown>>;
2064
2407
  }>;
@@ -2077,6 +2420,13 @@ export type PollRemoteConnectorResponse = {
2077
2420
  server_time: number;
2078
2421
  lease_ttl_ms: number;
2079
2422
  };
2423
+ /** Publish a bounded source snapshot under its grant and sequence (POST /connectors/{connector_id}/targets/{target_id}/sync). */
2424
+ export type PublishSourceSyncBody = {
2425
+ generation: string;
2426
+ sequence: number;
2427
+ snapshot: Record<string, unknown>;
2428
+ };
2429
+ export type PublishSourceSyncResponse = Record<string, unknown>;
2080
2430
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
2081
2431
  export type RegisterRemoteConnectorBody = {
2082
2432
  installation_id: string;
@@ -2085,6 +2435,7 @@ export type RegisterRemoteConnectorBody = {
2085
2435
  capabilities: {
2086
2436
  native_execution: boolean;
2087
2437
  history_import?: boolean;
2438
+ config_sync?: boolean;
2088
2439
  };
2089
2440
  };
2090
2441
  export type RegisterRemoteConnectorResponse = {
@@ -2099,6 +2450,7 @@ export type RegisterRemoteConnectorResponse = {
2099
2450
  observe: true;
2100
2451
  native_execution: boolean;
2101
2452
  history_import: boolean;
2453
+ config_sync: boolean;
2102
2454
  };
2103
2455
  targets: Array<Record<string, unknown>>;
2104
2456
  };
@@ -2127,10 +2479,18 @@ export type RevokeRemoteConnectorResponse = {
2127
2479
  observe: true;
2128
2480
  native_execution: boolean;
2129
2481
  history_import: boolean;
2482
+ config_sync: boolean;
2130
2483
  };
2131
2484
  targets: Array<Record<string, unknown>>;
2132
2485
  };
2133
2486
  };
2487
+ /** Record a fixed source failure while preserving its last complete snapshot (POST /connectors/{connector_id}/targets/{target_id}/sync/status). */
2488
+ export type SourceSyncFailureBody = {
2489
+ generation: string;
2490
+ sequence: number;
2491
+ code: "unsupported_platform" | "source_changed" | "source_unavailable" | "snapshot_too_large";
2492
+ };
2493
+ export type SourceSyncFailureResponse = Record<string, unknown>;
2134
2494
  /** Reserve an upload (POST /files). */
2135
2495
  export type CreateFileBody = FileCreate;
2136
2496
  export interface CreateFileParams {
@@ -2452,6 +2812,7 @@ export type PutLearningCorrectionsResponse = {
2452
2812
  /** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
2453
2813
  export type ConnectGitHubBody = {
2454
2814
  org?: string;
2815
+ contents?: "read" | "write";
2455
2816
  };
2456
2817
  export type ConnectGitHubResponse = {
2457
2818
  action: string;
@@ -2465,6 +2826,72 @@ export type CreatePairingResponse = {
2465
2826
  expires_at: string;
2466
2827
  runs_refused: string | null;
2467
2828
  };
2829
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
2830
+ export type CreateSuggestedAgentBody = {
2831
+ name?: string;
2832
+ };
2833
+ export type CreateSuggestedAgentResponse = {
2834
+ id: string;
2835
+ repo: string;
2836
+ key: string;
2837
+ status: "open" | "created" | "discarded";
2838
+ title: string;
2839
+ summary: string;
2840
+ why: string;
2841
+ impact: "high" | "medium" | "low";
2842
+ evidence: Array<{
2843
+ path: string;
2844
+ line: number;
2845
+ quote: string;
2846
+ url: string;
2847
+ }>;
2848
+ agent: {
2849
+ name: string;
2850
+ description: string;
2851
+ inputs: Array<{
2852
+ name: string;
2853
+ type: "string" | "number" | "integer" | "boolean";
2854
+ description: string;
2855
+ required: boolean;
2856
+ }>;
2857
+ output: Array<{
2858
+ name: string;
2859
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
2860
+ description: string;
2861
+ enum?: Array<string>;
2862
+ }>;
2863
+ tools: Array<"web_search" | "web_fetch">;
2864
+ tier: "fast" | "balanced" | "strong";
2865
+ instructions?: string;
2866
+ };
2867
+ integration: {
2868
+ language: "typescript" | "javascript" | "python" | "other";
2869
+ path: string;
2870
+ call_site: {
2871
+ path: string;
2872
+ line: number;
2873
+ note: string;
2874
+ url: string;
2875
+ };
2876
+ };
2877
+ scan: {
2878
+ run_id: string;
2879
+ commit: string | null;
2880
+ at: string;
2881
+ };
2882
+ decided_at: string | null;
2883
+ created: null | {
2884
+ agent_id: string;
2885
+ template_id: string;
2886
+ branch: string | null;
2887
+ pull_request: null | {
2888
+ number: number;
2889
+ url: string;
2890
+ };
2891
+ pull_error: string | null;
2892
+ };
2893
+ warnings: Array<Record<string, unknown>>;
2894
+ };
2468
2895
  /** Forget this server's calendar (DELETE /settings/calendar). */
2469
2896
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
2470
2897
  export type DeleteComposioSubscriptionResponse = {
@@ -2505,6 +2932,68 @@ export type DeleteWorkspaceArchilResponse = {
2505
2932
  s3Url?: string;
2506
2933
  image?: string;
2507
2934
  };
2935
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
2936
+ export type DiscardSuggestionResponse = {
2937
+ id: string;
2938
+ repo: string;
2939
+ key: string;
2940
+ status: "open" | "created" | "discarded";
2941
+ title: string;
2942
+ summary: string;
2943
+ why: string;
2944
+ impact: "high" | "medium" | "low";
2945
+ evidence: Array<{
2946
+ path: string;
2947
+ line: number;
2948
+ quote: string;
2949
+ url: string;
2950
+ }>;
2951
+ agent: {
2952
+ name: string;
2953
+ description: string;
2954
+ inputs: Array<{
2955
+ name: string;
2956
+ type: "string" | "number" | "integer" | "boolean";
2957
+ description: string;
2958
+ required: boolean;
2959
+ }>;
2960
+ output: Array<{
2961
+ name: string;
2962
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
2963
+ description: string;
2964
+ enum?: Array<string>;
2965
+ }>;
2966
+ tools: Array<"web_search" | "web_fetch">;
2967
+ tier: "fast" | "balanced" | "strong";
2968
+ instructions?: string;
2969
+ };
2970
+ integration: {
2971
+ language: "typescript" | "javascript" | "python" | "other";
2972
+ path: string;
2973
+ call_site: {
2974
+ path: string;
2975
+ line: number;
2976
+ note: string;
2977
+ url: string;
2978
+ };
2979
+ };
2980
+ scan: {
2981
+ run_id: string;
2982
+ commit: string | null;
2983
+ at: string;
2984
+ };
2985
+ decided_at: string | null;
2986
+ created: null | {
2987
+ agent_id: string;
2988
+ template_id: string;
2989
+ branch: string | null;
2990
+ pull_request: null | {
2991
+ number: number;
2992
+ url: string;
2993
+ };
2994
+ pull_error: string | null;
2995
+ };
2996
+ };
2508
2997
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
2509
2998
  export type DisconnectGitHubResponse = {
2510
2999
  disconnected: true;
@@ -2600,6 +3089,85 @@ export type GetModelGatewayResponse = {
2600
3089
  };
2601
3090
  problem: string | null;
2602
3091
  };
3092
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
3093
+ export interface GetSuggestionParams {
3094
+ name?: string;
3095
+ }
3096
+ export type GetSuggestionResponse = {
3097
+ id: string;
3098
+ repo: string;
3099
+ key: string;
3100
+ status: "open" | "created" | "discarded";
3101
+ title: string;
3102
+ summary: string;
3103
+ why: string;
3104
+ impact: "high" | "medium" | "low";
3105
+ evidence: Array<{
3106
+ path: string;
3107
+ line: number;
3108
+ quote: string;
3109
+ url: string;
3110
+ }>;
3111
+ agent: {
3112
+ name: string;
3113
+ description: string;
3114
+ inputs: Array<{
3115
+ name: string;
3116
+ type: "string" | "number" | "integer" | "boolean";
3117
+ description: string;
3118
+ required: boolean;
3119
+ }>;
3120
+ output: Array<{
3121
+ name: string;
3122
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3123
+ description: string;
3124
+ enum?: Array<string>;
3125
+ }>;
3126
+ tools: Array<"web_search" | "web_fetch">;
3127
+ tier: "fast" | "balanced" | "strong";
3128
+ instructions?: string;
3129
+ };
3130
+ integration: {
3131
+ language: "typescript" | "javascript" | "python" | "other";
3132
+ path: string;
3133
+ call_site: {
3134
+ path: string;
3135
+ line: number;
3136
+ note: string;
3137
+ url: string;
3138
+ };
3139
+ };
3140
+ scan: {
3141
+ run_id: string;
3142
+ commit: string | null;
3143
+ at: string;
3144
+ };
3145
+ decided_at: string | null;
3146
+ created: null | {
3147
+ agent_id: string;
3148
+ template_id: string;
3149
+ branch: string | null;
3150
+ pull_request: null | {
3151
+ number: number;
3152
+ url: string;
3153
+ };
3154
+ pull_error: string | null;
3155
+ };
3156
+ files: Array<{
3157
+ path: string;
3158
+ content: string;
3159
+ }>;
3160
+ problems: Array<string>;
3161
+ github: {
3162
+ ready: boolean;
3163
+ reason: null | "not_connected" | "not_installed" | "github_failed" | "permission_missing";
3164
+ message: string | null;
3165
+ missing: Array<string>;
3166
+ install_url: string | null;
3167
+ permissions_url: string | null;
3168
+ installation_url: string | null;
3169
+ };
3170
+ };
2603
3171
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
2604
3172
  export type GetWorkspaceArchilResponse = {
2605
3173
  on: boolean;
@@ -2723,8 +3291,10 @@ export type ListComputersResponse = {
2723
3291
  tools: Array<string>;
2724
3292
  settings: Array<string>;
2725
3293
  record: {
2726
- available: boolean;
2727
- why?: string;
3294
+ available: true;
3295
+ } | {
3296
+ available: false;
3297
+ why: string;
2728
3298
  };
2729
3299
  providers: Array<{
2730
3300
  id: string;
@@ -2773,6 +3343,123 @@ export type ListComputersResponse = {
2773
3343
  shell_note?: string;
2774
3344
  }>;
2775
3345
  };
3346
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
3347
+ export type ListGitHubRepositoriesResponse = {
3348
+ repositories: Array<{
3349
+ full_name: string;
3350
+ private: boolean;
3351
+ account: string;
3352
+ installation: number;
3353
+ default_branch?: string;
3354
+ description?: string;
3355
+ }>;
3356
+ truncated: boolean;
3357
+ unread: Array<{
3358
+ account: string;
3359
+ why: string;
3360
+ }>;
3361
+ };
3362
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
3363
+ export type ListMcpServerNamesResponse = {
3364
+ names: Array<string>;
3365
+ };
3366
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
3367
+ export interface ListSuggestionsParams {
3368
+ repo?: string;
3369
+ status?: "open" | "created" | "discarded" | "all";
3370
+ }
3371
+ export type ListSuggestionsResponse = {
3372
+ github: {
3373
+ connected: boolean;
3374
+ app: string | null;
3375
+ installations: Array<{
3376
+ account: string;
3377
+ }>;
3378
+ install_url: string | null;
3379
+ };
3380
+ repositories: Array<{
3381
+ repo: string;
3382
+ scan: {
3383
+ run_id: string;
3384
+ agent_id: string;
3385
+ started_at: string;
3386
+ status: "running" | "waiting" | "completed" | "failed" | "cancelled";
3387
+ ended_at: string | null;
3388
+ app: string | null;
3389
+ commit: string | null;
3390
+ found: number | null;
3391
+ dropped: Array<string>;
3392
+ already_decided: number;
3393
+ error: string | null;
3394
+ };
3395
+ counts: {
3396
+ open: number;
3397
+ created: number;
3398
+ discarded: number;
3399
+ };
3400
+ }>;
3401
+ suggestions: Array<{
3402
+ id: string;
3403
+ repo: string;
3404
+ key: string;
3405
+ status: "open" | "created" | "discarded";
3406
+ title: string;
3407
+ summary: string;
3408
+ why: string;
3409
+ impact: "high" | "medium" | "low";
3410
+ evidence: Array<{
3411
+ path: string;
3412
+ line: number;
3413
+ quote: string;
3414
+ url: string;
3415
+ }>;
3416
+ agent: {
3417
+ name: string;
3418
+ description: string;
3419
+ inputs: Array<{
3420
+ name: string;
3421
+ type: "string" | "number" | "integer" | "boolean";
3422
+ description: string;
3423
+ required: boolean;
3424
+ }>;
3425
+ output: Array<{
3426
+ name: string;
3427
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3428
+ description: string;
3429
+ enum?: Array<string>;
3430
+ }>;
3431
+ tools: Array<"web_search" | "web_fetch">;
3432
+ tier: "fast" | "balanced" | "strong";
3433
+ instructions?: string;
3434
+ };
3435
+ integration: {
3436
+ language: "typescript" | "javascript" | "python" | "other";
3437
+ path: string;
3438
+ call_site: {
3439
+ path: string;
3440
+ line: number;
3441
+ note: string;
3442
+ url: string;
3443
+ };
3444
+ };
3445
+ scan: {
3446
+ run_id: string;
3447
+ commit: string | null;
3448
+ at: string;
3449
+ };
3450
+ decided_at: string | null;
3451
+ created: null | {
3452
+ agent_id: string;
3453
+ template_id: string;
3454
+ branch: string | null;
3455
+ pull_request: null | {
3456
+ number: number;
3457
+ url: string;
3458
+ };
3459
+ pull_error: string | null;
3460
+ };
3461
+ }>;
3462
+ };
2776
3463
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
2777
3464
  export type PutWorkspaceArchilBody = {
2778
3465
  region: string;
@@ -2812,6 +3499,7 @@ export type ReceiveHookComposioResponse = {
2812
3499
  count?: number;
2813
3500
  attempts?: number;
2814
3501
  retry_at?: string;
3502
+ start_by?: string;
2815
3503
  catch_up?: true;
2816
3504
  } | {
2817
3505
  ok: "duplicate";
@@ -2834,11 +3522,74 @@ export type ReceiveHookComposioResponse = {
2834
3522
  count?: number;
2835
3523
  attempts?: number;
2836
3524
  retry_at?: string;
3525
+ start_by?: string;
2837
3526
  catch_up?: true;
2838
3527
  } | {
2839
3528
  ok: "duplicate";
2840
3529
  }>;
2841
3530
  };
3531
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
3532
+ export type RestoreSuggestionResponse = {
3533
+ id: string;
3534
+ repo: string;
3535
+ key: string;
3536
+ status: "open" | "created" | "discarded";
3537
+ title: string;
3538
+ summary: string;
3539
+ why: string;
3540
+ impact: "high" | "medium" | "low";
3541
+ evidence: Array<{
3542
+ path: string;
3543
+ line: number;
3544
+ quote: string;
3545
+ url: string;
3546
+ }>;
3547
+ agent: {
3548
+ name: string;
3549
+ description: string;
3550
+ inputs: Array<{
3551
+ name: string;
3552
+ type: "string" | "number" | "integer" | "boolean";
3553
+ description: string;
3554
+ required: boolean;
3555
+ }>;
3556
+ output: Array<{
3557
+ name: string;
3558
+ type: "string" | "number" | "integer" | "boolean" | "string_list";
3559
+ description: string;
3560
+ enum?: Array<string>;
3561
+ }>;
3562
+ tools: Array<"web_search" | "web_fetch">;
3563
+ tier: "fast" | "balanced" | "strong";
3564
+ instructions?: string;
3565
+ };
3566
+ integration: {
3567
+ language: "typescript" | "javascript" | "python" | "other";
3568
+ path: string;
3569
+ call_site: {
3570
+ path: string;
3571
+ line: number;
3572
+ note: string;
3573
+ url: string;
3574
+ };
3575
+ };
3576
+ scan: {
3577
+ run_id: string;
3578
+ commit: string | null;
3579
+ at: string;
3580
+ };
3581
+ decided_at: string | null;
3582
+ created: null | {
3583
+ agent_id: string;
3584
+ template_id: string;
3585
+ branch: string | null;
3586
+ pull_request: null | {
3587
+ number: number;
3588
+ url: string;
3589
+ };
3590
+ pull_error: string | null;
3591
+ };
3592
+ };
2842
3593
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
2843
3594
  export type RotateComposioSecretResponse = {
2844
3595
  rotated: true;
@@ -2886,6 +3637,7 @@ export type SaveComposioServerResponse = {
2886
3637
  name: string;
2887
3638
  title?: string;
2888
3639
  description?: string;
3640
+ resource?: "list" | "templates" | "read";
2889
3641
  input_schema: Record<string, unknown>;
2890
3642
  output_schema?: Record<string, unknown>;
2891
3643
  annotations?: Record<string, unknown>;
@@ -3014,6 +3766,17 @@ export type SaveModelGatewayResponse = {
3014
3766
  };
3015
3767
  problem: string | null;
3016
3768
  };
3769
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
3770
+ export type ScanForSuggestionsBody = {
3771
+ repo: string;
3772
+ };
3773
+ export type ScanForSuggestionsResponse = {
3774
+ repo: string;
3775
+ run_id: string;
3776
+ agent_id: string;
3777
+ status: "running";
3778
+ already_running: boolean;
3779
+ };
3017
3780
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
3018
3781
  export type SignOutChatGPTResponse = {
3019
3782
  revoked: boolean;
@@ -3175,6 +3938,7 @@ export type GetMcpServerResponse = {
3175
3938
  name: string;
3176
3939
  title?: string;
3177
3940
  description?: string;
3941
+ resource?: "list" | "templates" | "read";
3178
3942
  input_schema: Record<string, unknown>;
3179
3943
  output_schema?: Record<string, unknown>;
3180
3944
  annotations?: Record<string, unknown>;
@@ -3219,6 +3983,7 @@ export type ListMcpServersResponse = {
3219
3983
  name: string;
3220
3984
  title?: string;
3221
3985
  description?: string;
3986
+ resource?: "list" | "templates" | "read";
3222
3987
  input_schema: Record<string, unknown>;
3223
3988
  output_schema?: Record<string, unknown>;
3224
3989
  annotations?: Record<string, unknown>;
@@ -3261,6 +4026,7 @@ export type PreviewMcpServerResponse = {
3261
4026
  name: string;
3262
4027
  title?: string;
3263
4028
  description?: string;
4029
+ resource?: "list" | "templates" | "read";
3264
4030
  input_schema: Record<string, unknown>;
3265
4031
  output_schema?: Record<string, unknown>;
3266
4032
  annotations?: Record<string, unknown>;
@@ -3307,6 +4073,7 @@ export type RefreshMcpServerResponse = {
3307
4073
  name: string;
3308
4074
  title?: string;
3309
4075
  description?: string;
4076
+ resource?: "list" | "templates" | "read";
3310
4077
  input_schema: Record<string, unknown>;
3311
4078
  output_schema?: Record<string, unknown>;
3312
4079
  annotations?: Record<string, unknown>;
@@ -3361,6 +4128,7 @@ export type SaveMcpServerResponse = {
3361
4128
  name: string;
3362
4129
  title?: string;
3363
4130
  description?: string;
4131
+ resource?: "list" | "templates" | "read";
3364
4132
  input_schema: Record<string, unknown>;
3365
4133
  output_schema?: Record<string, unknown>;
3366
4134
  annotations?: Record<string, unknown>;
@@ -3490,6 +4258,7 @@ export type ListRevisionsResponse = {
3490
4258
  name: string;
3491
4259
  title?: string;
3492
4260
  description?: string;
4261
+ resource?: "list" | "templates" | "read";
3493
4262
  input_schema: Record<string, unknown>;
3494
4263
  annotations?: Record<string, unknown>;
3495
4264
  }>;
@@ -3977,12 +4746,18 @@ export type StartSdkRunBody = {
3977
4746
  price_usd?: number;
3978
4747
  }>;
3979
4748
  workflow_adapters?: Array<"runNode" | "runJudge">;
4749
+ started_at?: string;
4750
+ title?: string;
4751
+ labels?: Record<string, string>;
3980
4752
  } | {
3981
4753
  runtime: "external";
3982
4754
  platform: string;
3983
4755
  input: string;
3984
4756
  instructions: string;
3985
4757
  model?: string;
4758
+ started_at?: string;
4759
+ title?: string;
4760
+ labels?: Record<string, string>;
3986
4761
  };
3987
4762
  export interface StartSdkRunParams {
3988
4763
  "Idempotency-Key": string;
@@ -4262,6 +5037,7 @@ export type GetStatsResponse = {
4262
5037
  };
4263
5038
  /** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
4264
5039
  export type ApplyTemplateBody = {
5040
+ dry_run?: boolean;
4265
5041
  parameters?: Record<string, unknown>;
4266
5042
  servers?: Record<string, string>;
4267
5043
  grants?: Array<string>;
@@ -4271,6 +5047,8 @@ export type ApplyTemplateBody = {
4271
5047
  choice?: string;
4272
5048
  approvals?: "ask" | "never";
4273
5049
  };
5050
+ revision?: string;
5051
+ sha?: string;
4274
5052
  };
4275
5053
  export interface ApplyTemplateParams {
4276
5054
  "Idempotency-Key"?: string;
@@ -4279,6 +5057,51 @@ export type ApplyTemplateResponse = {
4279
5057
  template: string;
4280
5058
  version: string;
4281
5059
  agent_id: string;
5060
+ revision_id: string | null;
5061
+ revision_version: number;
5062
+ agent_change: "made" | "updated" | "unchanged";
5063
+ servers: Record<string, string | null>;
5064
+ triggers: Array<{
5065
+ trigger_id: string;
5066
+ name: string;
5067
+ kind: "schedule" | "webhook" | "github" | "composio" | "email" | "feed";
5068
+ enabled: boolean;
5069
+ }>;
5070
+ warnings: Array<InputIssue>;
5071
+ webhook_secrets?: Array<{
5072
+ trigger_id: string;
5073
+ secret: SecretMeta;
5074
+ signing_secret?: string;
5075
+ secret_set?: true;
5076
+ note?: string;
5077
+ }>;
5078
+ } | {
5079
+ plan: {
5080
+ action: "create" | "revise";
5081
+ agent_id: string | null;
5082
+ current_revision_id: string | null;
5083
+ missing_secrets: Array<string>;
5084
+ unmatched_mcp: Array<{
5085
+ source: string;
5086
+ toolkit: string;
5087
+ required: boolean;
5088
+ }>;
5089
+ triggers: Array<{
5090
+ name: string;
5091
+ kind: string;
5092
+ action: "create" | "update" | "remove" | "skip";
5093
+ reason?: string;
5094
+ }>;
5095
+ computer: {
5096
+ kind: string;
5097
+ provider: string | null;
5098
+ } | null;
5099
+ };
5100
+ } | {
5101
+ template: string;
5102
+ version: string;
5103
+ agent_id: string;
5104
+ revision_id: string | null;
4282
5105
  revision_version: number;
4283
5106
  agent_change: "made" | "updated" | "unchanged";
4284
5107
  servers: Record<string, string | null>;
@@ -4298,9 +5121,105 @@ export type ApplyTemplateResponse = {
4298
5121
  }>;
4299
5122
  };
4300
5123
  /** Remove an imported template package (DELETE /templates/{template}). */
4301
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
5124
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
5125
+ export type GetTemplateResponse = {
5126
+ template: {
5127
+ id: string;
5128
+ bundled: boolean;
5129
+ source: string | null;
5130
+ sha: string | null;
5131
+ publisher: string | null;
5132
+ name: string;
5133
+ display_name: string | null;
5134
+ version: string;
5135
+ description: string;
5136
+ license: string | null;
5137
+ author: {
5138
+ name: string;
5139
+ email?: string;
5140
+ url?: string;
5141
+ } | null;
5142
+ repository: string | null;
5143
+ output: {
5144
+ schema: string;
5145
+ json_schema: Record<string, unknown> | null;
5146
+ } | null;
5147
+ harness: Array<string> | null;
5148
+ model: {
5149
+ tier: "fast" | "balanced" | "strong";
5150
+ prefer?: string;
5151
+ fast?: string;
5152
+ strong?: string;
5153
+ choices?: Array<{
5154
+ id: string;
5155
+ label: string;
5156
+ model: string;
5157
+ harness: string;
5158
+ warning: string | null;
5159
+ note: string | null;
5160
+ secrets: Array<string>;
5161
+ }>;
5162
+ } | null;
5163
+ effort: string | null;
5164
+ tools: Array<string> | null;
5165
+ checkout: "pull_request" | "repository" | null;
5166
+ tool_policy: {
5167
+ bash: "read-only";
5168
+ } | null;
5169
+ computer: Array<"shell" | "none"> | null;
5170
+ needs: Array<string> | null;
5171
+ computer_here: {
5172
+ entry: "shell" | "none" | null;
5173
+ computer: {
5174
+ kind: string;
5175
+ provider?: string;
5176
+ needs?: Array<string>;
5177
+ } | null;
5178
+ shell: string | null;
5179
+ dropped: Array<string>;
5180
+ note: string | null;
5181
+ } | null;
5182
+ category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
5183
+ tags: Array<string>;
5184
+ mcp: Array<{
5185
+ source: "composio" | "github" | "url";
5186
+ toolkit: string;
5187
+ required: boolean;
5188
+ reason: string | null;
5189
+ tools: Array<{
5190
+ name: string;
5191
+ tool: string;
5192
+ asks: "allow" | "ask";
5193
+ pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
5194
+ keys: Array<string>;
5195
+ }>;
5196
+ }>;
5197
+ }>;
5198
+ parameters: Record<string, unknown>;
5199
+ input_schema: Record<string, unknown> | null;
5200
+ secrets: Array<string>;
5201
+ budget: {
5202
+ per_run_usd: number;
5203
+ max_requests?: number;
5204
+ } | null;
5205
+ learning: boolean | Record<string, unknown>;
5206
+ approvals_default: "ask" | "never";
5207
+ triggers: Array<Record<string, unknown>>;
5208
+ skills: Array<string>;
5209
+ evals: Array<string>;
5210
+ };
5211
+ instructions: string;
5212
+ skill_files: Record<string, string>;
5213
+ console_url: string;
5214
+ };
5215
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
4302
5216
  export type ImportTemplateBody = {
4303
- source: string;
5217
+ source?: string;
5218
+ files?: Array<{
5219
+ path: string;
5220
+ encoding: "utf8" | "base64";
5221
+ content: string;
5222
+ }>;
4304
5223
  dry_run?: boolean;
4305
5224
  trust_publisher?: boolean;
4306
5225
  };
@@ -4344,16 +5263,18 @@ export type ImportTemplateResponse = {
4344
5263
  } | null;
4345
5264
  effort: string | null;
4346
5265
  tools: Array<string> | null;
4347
- checkout: "pull_request" | null;
5266
+ checkout: "pull_request" | "repository" | null;
4348
5267
  tool_policy: {
4349
5268
  bash: "read-only";
4350
5269
  } | null;
4351
5270
  computer: Array<"shell" | "none"> | null;
5271
+ needs: Array<string> | null;
4352
5272
  computer_here: {
4353
5273
  entry: "shell" | "none" | null;
4354
5274
  computer: {
4355
5275
  kind: string;
4356
5276
  provider?: string;
5277
+ needs?: Array<string>;
4357
5278
  } | null;
4358
5279
  shell: string | null;
4359
5280
  dropped: Array<string>;
@@ -4436,16 +5357,18 @@ export type ListTemplatesResponse = {
4436
5357
  } | null;
4437
5358
  effort: string | null;
4438
5359
  tools: Array<string> | null;
4439
- checkout: "pull_request" | null;
5360
+ checkout: "pull_request" | "repository" | null;
4440
5361
  tool_policy: {
4441
5362
  bash: "read-only";
4442
5363
  } | null;
4443
5364
  computer: Array<"shell" | "none"> | null;
5365
+ needs: Array<string> | null;
4444
5366
  computer_here: {
4445
5367
  entry: "shell" | "none" | null;
4446
5368
  computer: {
4447
5369
  kind: string;
4448
5370
  provider?: string;
5371
+ needs?: Array<string>;
4449
5372
  } | null;
4450
5373
  shell: string | null;
4451
5374
  dropped: Array<string>;
@@ -4926,6 +5849,7 @@ export type CreateTriggerResponse = {
4926
5849
  count?: number;
4927
5850
  attempts?: number;
4928
5851
  retry_at?: string;
5852
+ start_by?: string;
4929
5853
  catch_up?: true;
4930
5854
  } | null;
4931
5855
  last_check?: {
@@ -4966,6 +5890,7 @@ export type FireTriggerResponse = {
4966
5890
  count?: number;
4967
5891
  attempts?: number;
4968
5892
  retry_at?: string;
5893
+ start_by?: string;
4969
5894
  catch_up?: true;
4970
5895
  };
4971
5896
  /** The trigger's last 200 firings, newest first (GET /triggers/{trigger_id}/firings). */
@@ -4985,6 +5910,7 @@ export type ListTriggerFiringsResponse = {
4985
5910
  count?: number;
4986
5911
  attempts?: number;
4987
5912
  retry_at?: string;
5913
+ start_by?: string;
4988
5914
  catch_up?: true;
4989
5915
  }>;
4990
5916
  };
@@ -5157,6 +6083,7 @@ export type GetTriggerResponse = {
5157
6083
  count?: number;
5158
6084
  attempts?: number;
5159
6085
  retry_at?: string;
6086
+ start_by?: string;
5160
6087
  catch_up?: true;
5161
6088
  } | null;
5162
6089
  last_check?: {
@@ -5338,6 +6265,7 @@ export type ListTriggersResponse = {
5338
6265
  count?: number;
5339
6266
  attempts?: number;
5340
6267
  retry_at?: string;
6268
+ start_by?: string;
5341
6269
  catch_up?: true;
5342
6270
  } | null;
5343
6271
  last_check?: {
@@ -5652,6 +6580,7 @@ export type UpdateTriggerResponse = {
5652
6580
  count?: number;
5653
6581
  attempts?: number;
5654
6582
  retry_at?: string;
6583
+ start_by?: string;
5655
6584
  catch_up?: true;
5656
6585
  } | null;
5657
6586
  last_check?: {
@@ -5796,6 +6725,8 @@ export declare function resources(call: Call): {
5796
6725
  agents: {
5797
6726
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
5798
6727
  archive: (agentId: string, options?: RequestOptions) => Promise<ArchiveAgentResponse>;
6728
+ /** Choose the existing destination account for a required source tool (POST /agents/{agent_id}/source/tools). */
6729
+ bindSourceTool: (agentId: string, body: BindSourceToolBody, options?: RequestOptions) => Promise<BindSourceToolResponse>;
5799
6730
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
5800
6731
  connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
5801
6732
  /** Create an agent home (POST /agents). */
@@ -5818,14 +6749,26 @@ export declare function resources(call: Call): {
5818
6749
  getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
5819
6750
  /** Read a native connection (GET /agents/{agent_id}/native). */
5820
6751
  getNative: (agentId: string, options?: RequestOptions) => Promise<GetNativeResponse>;
6752
+ /** Read source sync and managed Move readiness (GET /agents/{agent_id}/source). */
6753
+ getSourceSync: (agentId: string, options?: RequestOptions) => Promise<GetSourceSyncResponse>;
5821
6754
  /** List agents (GET /agents). */
5822
6755
  list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
5823
6756
  /** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
5824
6757
  listLearningAudits: (agentId: string, options?: RequestOptions) => Promise<ListLearningAuditsResponse>;
5825
6758
  /** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
5826
6759
  listLearningPromotions: (agentId: string, options?: RequestOptions) => Promise<ListLearningPromotionsResponse>;
6760
+ /** Move the same agent to server-managed execution from its complete synchronized setup (POST /agents/{agent_id}/source/move). */
6761
+ moveSourceAgent: (agentId: string, body: MoveSourceAgentBody, options?: RequestOptions) => Promise<MoveSourceAgentResponse>;
6762
+ /** The agent's current revision as a template package (GET /agents/{agent_id}/package). */
6763
+ package: (agentId: string, options?: RequestOptions) => Promise<GetAgentPackageResponse>;
6764
+ /** Use an explicitly reviewed source snapshot while retaining the prior managed revision in history (POST /agents/{agent_id}/source/resolve). */
6765
+ resolveSourceSync: (agentId: string, body: ResolveSourceSyncBody, options?: RequestOptions) => Promise<ResolveSourceSyncResponse>;
6766
+ /** Acknowledge exact unresolved run receipts and allow later runs to use the saved project (POST /agents/{agent_id}/source/project-review). */
6767
+ reviewSourceProject: (agentId: string, body: ReviewSourceProjectBody, options?: RequestOptions) => Promise<ReviewSourceProjectResponse>;
5827
6768
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
5828
6769
  runs: (agentId: string, params?: ListRunsParams, options?: RequestOptions) => Promise<ListRunsResponse>;
6770
+ /** Enable or pause this agent’s source sync (PATCH /agents/{agent_id}/source). */
6771
+ setSourceSync: (agentId: string, body: SetSourceSyncBody, options?: RequestOptions) => Promise<SetSourceSyncResponse>;
5829
6772
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
5830
6773
  unarchive: (agentId: string, options?: RequestOptions) => Promise<UnarchiveAgentResponse>;
5831
6774
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -5858,6 +6801,8 @@ export declare function resources(call: Call): {
5858
6801
  completeRemoteCommand: (connectorId: string, commandId: string, body: CompleteRemoteCommandBody, options?: RequestOptions) => Promise<CompleteRemoteCommandResponse>;
5859
6802
  /** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
5860
6803
  enrollRemoteConnector: (body: EnrollRemoteConnectorBody, options?: RequestOptions) => Promise<EnrollRemoteConnectorResponse>;
6804
+ /** Read or establish this explicitly authorized source sync grant without re-enabling a paused grant (POST /connectors/{connector_id}/targets/{target_id}/sync/grant). */
6805
+ grantSourceSync: (connectorId: string, targetId: string, body: GrantSourceSyncBody, options?: RequestOptions) => Promise<GrantSourceSyncResponse>;
5861
6806
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
5862
6807
  importRemoteHistory: (connectorId: string, targetId: string, body: ImportRemoteHistoryBody, options?: RequestOptions) => Promise<ImportRemoteHistoryResponse>;
5863
6808
  /** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
@@ -5866,12 +6811,16 @@ export declare function resources(call: Call): {
5866
6811
  listRemoteConnectors: (options?: RequestOptions) => Promise<ListRemoteConnectorsResponse>;
5867
6812
  /** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
5868
6813
  pollRemoteConnector: (connectorId: string, body: PollRemoteConnectorBody, options?: RequestOptions) => Promise<PollRemoteConnectorResponse>;
6814
+ /** Publish a bounded source snapshot under its grant and sequence (POST /connectors/{connector_id}/targets/{target_id}/sync). */
6815
+ publishSourceSync: (connectorId: string, targetId: string, body: PublishSourceSyncBody, options?: RequestOptions) => Promise<PublishSourceSyncResponse>;
5869
6816
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
5870
6817
  registerRemoteConnector: (body: RegisterRemoteConnectorBody, options?: RequestOptions) => Promise<RegisterRemoteConnectorResponse>;
5871
6818
  /** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
5872
6819
  remoteCommandEvents: (connectorId: string, commandId: string, body: RemoteCommandEventsBody, options?: RequestOptions) => Promise<RemoteCommandEventsResponse>;
5873
6820
  /** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
5874
6821
  revokeRemoteConnector: (connectorId: string, options?: RequestOptions) => Promise<RevokeRemoteConnectorResponse>;
6822
+ /** Record a fixed source failure while preserving its last complete snapshot (POST /connectors/{connector_id}/targets/{target_id}/sync/status). */
6823
+ sourceSyncFailure: (connectorId: string, targetId: string, body: SourceSyncFailureBody, options?: RequestOptions) => Promise<SourceSyncFailureResponse>;
5875
6824
  };
5876
6825
  files: {
5877
6826
  /** Reserve an upload (POST /files). */
@@ -5920,6 +6869,8 @@ export declare function resources(call: Call): {
5920
6869
  local: {
5921
6870
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
5922
6871
  createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
6872
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
6873
+ createSuggestedAgent: (suggestionId: string, body?: CreateSuggestedAgentBody, options?: RequestOptions) => Promise<CreateSuggestedAgentResponse>;
5923
6874
  /** Forget this server's calendar (DELETE /settings/calendar). */
5924
6875
  deleteCalendar: (options?: RequestOptions) => Promise<void>;
5925
6876
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
@@ -5932,6 +6883,8 @@ export declare function resources(call: Call): {
5932
6883
  deleteModelGateway: (options?: RequestOptions) => Promise<DeleteModelGatewayResponse>;
5933
6884
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
5934
6885
  deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
6886
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
6887
+ discardSuggestion: (suggestionId: string, options?: RequestOptions) => Promise<DiscardSuggestionResponse>;
5935
6888
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
5936
6889
  disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
5937
6890
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
@@ -5948,6 +6901,8 @@ export declare function resources(call: Call): {
5948
6901
  getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
5949
6902
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
5950
6903
  getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
6904
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
6905
+ getSuggestion: (suggestionId: string, params?: GetSuggestionParams, options?: RequestOptions) => Promise<GetSuggestionResponse>;
5951
6906
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
5952
6907
  getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
5953
6908
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
@@ -5960,10 +6915,18 @@ export declare function resources(call: Call): {
5960
6915
  listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
5961
6916
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
5962
6917
  listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
6918
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
6919
+ listGitHubRepositories: (options?: RequestOptions) => Promise<ListGitHubRepositoriesResponse>;
6920
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
6921
+ listMcpServerNames: (options?: RequestOptions) => Promise<ListMcpServerNamesResponse>;
6922
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
6923
+ listSuggestions: (params?: ListSuggestionsParams, options?: RequestOptions) => Promise<ListSuggestionsResponse>;
5963
6924
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
5964
6925
  putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
5965
6926
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
5966
6927
  receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
6928
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
6929
+ restoreSuggestion: (suggestionId: string, options?: RequestOptions) => Promise<RestoreSuggestionResponse>;
5967
6930
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
5968
6931
  rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
5969
6932
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -5976,6 +6939,8 @@ export declare function resources(call: Call): {
5976
6939
  saveEmailAccount: (body: SaveEmailAccountBody, options?: RequestOptions) => Promise<SaveEmailAccountResponse>;
5977
6940
  /** Use a model gateway for every model, saved here (PUT /settings/model-gateway). */
5978
6941
  saveModelGateway: (body: SaveModelGatewayBody, options?: RequestOptions) => Promise<SaveModelGatewayResponse>;
6942
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
6943
+ scanForSuggestions: (body: ScanForSuggestionsBody, options?: RequestOptions) => Promise<ScanForSuggestionsResponse>;
5979
6944
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
5980
6945
  signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
5981
6946
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
@@ -6126,7 +7091,9 @@ export declare function resources(call: Call): {
6126
7091
  apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
6127
7092
  /** Remove an imported template package (DELETE /templates/{template}). */
6128
7093
  delete: (template: string, options?: RequestOptions) => Promise<void>;
6129
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
7094
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
7095
+ get: (template: string, options?: RequestOptions) => Promise<GetTemplateResponse>;
7096
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
6130
7097
  import: (body: ImportTemplateBody, options?: RequestOptions) => Promise<ImportTemplateResponse>;
6131
7098
  /** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
6132
7099
  list: (options?: RequestOptions) => Promise<ListTemplatesResponse>;