@parcha/agentrun-client 0.1.0-beta.51 → 0.1.0-beta.53

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?: {
@@ -282,6 +287,7 @@ export type DefinitionInput = {
282
287
  repick_max_chars?: number;
283
288
  };
284
289
  checkout?: "pull_request" | "none";
290
+ max_requests?: number;
285
291
  };
286
292
  export type JsonObject = Record<string, unknown>;
287
293
  export type Source = {
@@ -421,11 +427,13 @@ export type RunSummary = {
421
427
  kind: "agentic" | "workflow";
422
428
  archived_at: string | null;
423
429
  labels?: Record<string, string>;
430
+ stopped_for?: "budget" | null;
431
+ budget_refused_calls?: number;
424
432
  effort?: Effort;
425
433
  error?: RunError | null;
426
434
  learning?: {
427
435
  state: "seeded" | "reflecting" | "merged" | "dropped";
428
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
436
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | "reset" | null;
429
437
  detail: string | null;
430
438
  workflows?: Array<{
431
439
  file: string;
@@ -592,6 +600,7 @@ export type RunCreateInline = {
592
600
  max_cost_usd?: number;
593
601
  quote_id?: string;
594
602
  model_key?: string;
603
+ keys?: Record<string, string>;
595
604
  mcp_auth?: Record<string, {
596
605
  headers: Record<string, string>;
597
606
  } | ComposioRunBinding>;
@@ -709,6 +718,8 @@ export type Run = {
709
718
  kind: "agentic" | "workflow";
710
719
  archived_at: string | null;
711
720
  labels?: Record<string, string>;
721
+ stopped_for?: "budget" | null;
722
+ budget_refused_calls?: number;
712
723
  approvals?: "ask" | "never";
713
724
  last_progress_at?: string | null;
714
725
  recordings?: Array<{
@@ -745,7 +756,7 @@ export type Run = {
745
756
  };
746
757
  learning?: {
747
758
  state: "seeded" | "reflecting" | "merged" | "dropped";
748
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
759
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | "reset" | null;
749
760
  detail: string | null;
750
761
  at: string;
751
762
  workflows?: Array<{
@@ -842,6 +853,7 @@ export type MessageCreate = {
842
853
  mcp_auth?: Record<string, {
843
854
  headers: Record<string, string>;
844
855
  } | ComposioRunBinding>;
856
+ keys?: Record<string, string>;
845
857
  };
846
858
  export type MessageResult = {
847
859
  run_id: Id;
@@ -858,6 +870,7 @@ export type RunCreate = {
858
870
  max_cost_usd?: number;
859
871
  quote_id?: string;
860
872
  model_key?: string;
873
+ keys?: Record<string, string>;
861
874
  mcp_auth?: Record<string, {
862
875
  headers: Record<string, string>;
863
876
  } | ComposioRunBinding>;
@@ -870,6 +883,10 @@ export type RunCreate = {
870
883
  };
871
884
  hold?: boolean;
872
885
  hold_minutes?: number;
886
+ trigger_firing?: {
887
+ trigger_id: string;
888
+ firing_id: string;
889
+ };
873
890
  };
874
891
  export type StopResult = {
875
892
  run_id: Id;
@@ -955,7 +972,7 @@ export type TimelineRow = {
955
972
  tool_result_text?: string | null;
956
973
  learning?: {
957
974
  state: "seeded" | "reflecting" | "merged" | "dropped";
958
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
975
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | "reset" | null;
959
976
  detail: string | null;
960
977
  };
961
978
  };
@@ -1227,6 +1244,12 @@ export type Features = {
1227
1244
  };
1228
1245
  public_url?: boolean;
1229
1246
  };
1247
+ sdk_runs?: {
1248
+ started_at: boolean;
1249
+ title: boolean;
1250
+ labels: boolean;
1251
+ max_open_s: number;
1252
+ };
1230
1253
  };
1231
1254
  export type Meter = "tokens" | "agent_time" | "browser_time" | "disk" | "tools" | "learning";
1232
1255
  export type Region = {
@@ -1278,6 +1301,52 @@ export type UsageLine = {
1278
1301
  };
1279
1302
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
1280
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
+ };
1281
1350
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
1282
1351
  export type ConnectNativeBody = {
1283
1352
  project: string;
@@ -1286,6 +1355,10 @@ export type ConnectNativeBody = {
1286
1355
  kind: "project" | "agent" | "profile";
1287
1356
  name?: string;
1288
1357
  };
1358
+ source_sync?: {
1359
+ version: 1;
1360
+ scope: string;
1361
+ };
1289
1362
  };
1290
1363
  export type ConnectNativeResponse = {
1291
1364
  agent: Agent;
@@ -1497,6 +1570,48 @@ export type GetNativeResponse = {
1497
1570
  };
1498
1571
  } | null;
1499
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
+ };
1500
1615
  /** List agents (GET /agents). */
1501
1616
  export interface ListAgentsParams {
1502
1617
  limit?: number;
@@ -1568,6 +1683,28 @@ export type ListLearningPromotionsResponse = {
1568
1683
  stopped?: true;
1569
1684
  released?: number;
1570
1685
  fresh_reads?: number;
1686
+ turns?: {
1687
+ n: number;
1688
+ agreed: number;
1689
+ alone: number;
1690
+ of: Array<string>;
1691
+ outcomes: {
1692
+ answered: number;
1693
+ handed_back: number;
1694
+ failed: number;
1695
+ skipped_write: number;
1696
+ };
1697
+ disagreements?: Array<{
1698
+ run: string;
1699
+ input: string;
1700
+ agent: string | null;
1701
+ draft?: string;
1702
+ escalated?: string;
1703
+ failed?: true;
1704
+ differs_on?: string;
1705
+ }>;
1706
+ fresh_reads?: number;
1707
+ };
1571
1708
  };
1572
1709
  runs?: Array<string>;
1573
1710
  inputs?: Array<string>;
@@ -1657,10 +1794,201 @@ export type ListLearningPromotionsResponse = {
1657
1794
  stopped?: true;
1658
1795
  released?: number;
1659
1796
  fresh_reads?: number;
1797
+ turns?: {
1798
+ n: number;
1799
+ agreed: number;
1800
+ alone: number;
1801
+ of: Array<string>;
1802
+ outcomes: {
1803
+ answered: number;
1804
+ handed_back: number;
1805
+ failed: number;
1806
+ skipped_write: number;
1807
+ };
1808
+ disagreements?: Array<{
1809
+ run: string;
1810
+ input: string;
1811
+ agent: string | null;
1812
+ draft?: string;
1813
+ escalated?: string;
1814
+ failed?: true;
1815
+ differs_on?: string;
1816
+ }>;
1817
+ fresh_reads?: number;
1818
+ };
1660
1819
  } | null;
1661
1820
  } | null;
1662
1821
  }>;
1663
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
+ };
1664
1992
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
1665
1993
  export interface ListRunsParams {
1666
1994
  limit?: number;
@@ -1669,6 +1997,51 @@ export interface ListRunsParams {
1669
1997
  label?: string;
1670
1998
  }
1671
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
+ };
1672
2045
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
1673
2046
  export type UnarchiveAgentResponse = Record<string, unknown>;
1674
2047
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -1771,6 +2144,10 @@ export type EnrollCliLearningBody = {
1771
2144
  runtime: "codex" | "claude-code";
1772
2145
  project: string;
1773
2146
  name?: string;
2147
+ source_sync?: {
2148
+ version: 1;
2149
+ scope: string;
2150
+ };
1774
2151
  };
1775
2152
  export type EnrollCliLearningResponse = {
1776
2153
  connection_id: string;
@@ -1905,13 +2282,18 @@ export type EnrollRemoteConnectorBody = {
1905
2282
  capabilities?: {
1906
2283
  native_execution?: boolean;
1907
2284
  history_import?: boolean;
2285
+ config_sync?: boolean;
1908
2286
  };
2287
+ connector_id?: string;
1909
2288
  };
1910
2289
  export type EnrollRemoteConnectorResponse = {
1911
2290
  enrollment_token: string;
1912
2291
  expires_at: string;
1913
2292
  workspace_id: "local";
1914
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>;
1915
2297
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
1916
2298
  export type ImportRemoteHistoryBody = {
1917
2299
  sessions: Array<Record<string, unknown>>;
@@ -1964,6 +2346,11 @@ export type ImportRemoteTargetBody = {
1964
2346
  };
1965
2347
  };
1966
2348
  history_only?: boolean;
2349
+ cli_adoption?: {
2350
+ connection_id: string;
2351
+ credential_epoch: string;
2352
+ proof: string;
2353
+ };
1967
2354
  };
1968
2355
  export type ImportRemoteTargetResponse = {
1969
2356
  agent_id: string;
@@ -2014,6 +2401,7 @@ export type ListRemoteConnectorsResponse = {
2014
2401
  observe: true;
2015
2402
  native_execution: boolean;
2016
2403
  history_import: boolean;
2404
+ config_sync: boolean;
2017
2405
  };
2018
2406
  targets: Array<Record<string, unknown>>;
2019
2407
  }>;
@@ -2032,6 +2420,13 @@ export type PollRemoteConnectorResponse = {
2032
2420
  server_time: number;
2033
2421
  lease_ttl_ms: number;
2034
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>;
2035
2430
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
2036
2431
  export type RegisterRemoteConnectorBody = {
2037
2432
  installation_id: string;
@@ -2040,6 +2435,7 @@ export type RegisterRemoteConnectorBody = {
2040
2435
  capabilities: {
2041
2436
  native_execution: boolean;
2042
2437
  history_import?: boolean;
2438
+ config_sync?: boolean;
2043
2439
  };
2044
2440
  };
2045
2441
  export type RegisterRemoteConnectorResponse = {
@@ -2054,6 +2450,7 @@ export type RegisterRemoteConnectorResponse = {
2054
2450
  observe: true;
2055
2451
  native_execution: boolean;
2056
2452
  history_import: boolean;
2453
+ config_sync: boolean;
2057
2454
  };
2058
2455
  targets: Array<Record<string, unknown>>;
2059
2456
  };
@@ -2082,10 +2479,18 @@ export type RevokeRemoteConnectorResponse = {
2082
2479
  observe: true;
2083
2480
  native_execution: boolean;
2084
2481
  history_import: boolean;
2482
+ config_sync: boolean;
2085
2483
  };
2086
2484
  targets: Array<Record<string, unknown>>;
2087
2485
  };
2088
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>;
2089
2494
  /** Reserve an upload (POST /files). */
2090
2495
  export type CreateFileBody = FileCreate;
2091
2496
  export interface CreateFileParams {
@@ -2365,6 +2770,7 @@ export type GetLearnedWorkflowReplayResponse = {
2365
2770
  decided?: "promote" | "hold";
2366
2771
  reason?: string;
2367
2772
  };
2773
+ /** Reset the agent's learning: everything it learned deleted, the agent and its runs kept (DELETE /agents/{agent_id}/learning). */
2368
2774
  /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
2369
2775
  export interface RetireLearningFileParams {
2370
2776
  "If-Match"?: string;
@@ -2676,6 +3082,10 @@ export type ListComputersResponse = {
2676
3082
  groups: Array<string>;
2677
3083
  tools: Array<string>;
2678
3084
  settings: Array<string>;
3085
+ record: {
3086
+ available: boolean;
3087
+ why?: string;
3088
+ };
2679
3089
  providers: Array<{
2680
3090
  id: string;
2681
3091
  name: string;
@@ -2723,6 +3133,10 @@ export type ListComputersResponse = {
2723
3133
  shell_note?: string;
2724
3134
  }>;
2725
3135
  };
3136
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
3137
+ export type ListMcpServerNamesResponse = {
3138
+ names: Array<string>;
3139
+ };
2726
3140
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
2727
3141
  export type PutWorkspaceArchilBody = {
2728
3142
  region: string;
@@ -2762,6 +3176,7 @@ export type ReceiveHookComposioResponse = {
2762
3176
  count?: number;
2763
3177
  attempts?: number;
2764
3178
  retry_at?: string;
3179
+ start_by?: string;
2765
3180
  catch_up?: true;
2766
3181
  } | {
2767
3182
  ok: "duplicate";
@@ -2784,6 +3199,7 @@ export type ReceiveHookComposioResponse = {
2784
3199
  count?: number;
2785
3200
  attempts?: number;
2786
3201
  retry_at?: string;
3202
+ start_by?: string;
2787
3203
  catch_up?: true;
2788
3204
  } | {
2789
3205
  ok: "duplicate";
@@ -2836,6 +3252,7 @@ export type SaveComposioServerResponse = {
2836
3252
  name: string;
2837
3253
  title?: string;
2838
3254
  description?: string;
3255
+ resource?: "list" | "templates" | "read";
2839
3256
  input_schema: Record<string, unknown>;
2840
3257
  output_schema?: Record<string, unknown>;
2841
3258
  annotations?: Record<string, unknown>;
@@ -3125,6 +3542,7 @@ export type GetMcpServerResponse = {
3125
3542
  name: string;
3126
3543
  title?: string;
3127
3544
  description?: string;
3545
+ resource?: "list" | "templates" | "read";
3128
3546
  input_schema: Record<string, unknown>;
3129
3547
  output_schema?: Record<string, unknown>;
3130
3548
  annotations?: Record<string, unknown>;
@@ -3169,6 +3587,7 @@ export type ListMcpServersResponse = {
3169
3587
  name: string;
3170
3588
  title?: string;
3171
3589
  description?: string;
3590
+ resource?: "list" | "templates" | "read";
3172
3591
  input_schema: Record<string, unknown>;
3173
3592
  output_schema?: Record<string, unknown>;
3174
3593
  annotations?: Record<string, unknown>;
@@ -3211,6 +3630,7 @@ export type PreviewMcpServerResponse = {
3211
3630
  name: string;
3212
3631
  title?: string;
3213
3632
  description?: string;
3633
+ resource?: "list" | "templates" | "read";
3214
3634
  input_schema: Record<string, unknown>;
3215
3635
  output_schema?: Record<string, unknown>;
3216
3636
  annotations?: Record<string, unknown>;
@@ -3257,6 +3677,7 @@ export type RefreshMcpServerResponse = {
3257
3677
  name: string;
3258
3678
  title?: string;
3259
3679
  description?: string;
3680
+ resource?: "list" | "templates" | "read";
3260
3681
  input_schema: Record<string, unknown>;
3261
3682
  output_schema?: Record<string, unknown>;
3262
3683
  annotations?: Record<string, unknown>;
@@ -3311,6 +3732,7 @@ export type SaveMcpServerResponse = {
3311
3732
  name: string;
3312
3733
  title?: string;
3313
3734
  description?: string;
3735
+ resource?: "list" | "templates" | "read";
3314
3736
  input_schema: Record<string, unknown>;
3315
3737
  output_schema?: Record<string, unknown>;
3316
3738
  annotations?: Record<string, unknown>;
@@ -3440,6 +3862,7 @@ export type ListRevisionsResponse = {
3440
3862
  name: string;
3441
3863
  title?: string;
3442
3864
  description?: string;
3865
+ resource?: "list" | "templates" | "read";
3443
3866
  input_schema: Record<string, unknown>;
3444
3867
  annotations?: Record<string, unknown>;
3445
3868
  }>;
@@ -3601,7 +4024,7 @@ export type HandBackRunComputerResponse = {
3601
4024
  export type GetRunLearningResponse = {
3602
4025
  run: string;
3603
4026
  state: "seeded" | "reflecting" | "merged" | "dropped";
3604
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
4027
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | "reset" | null;
3605
4028
  detail: string | null;
3606
4029
  at: string;
3607
4030
  seed: string | null;
@@ -3787,6 +4210,8 @@ export type GetRunUsageResponse = {
3787
4210
  quantity: number | null;
3788
4211
  unit: "token" | "call" | "second" | "vcpu_second" | "gib_second" | "gpu_second" | "gb_month";
3789
4212
  basis: "reported" | "estimate" | "unpriced";
4213
+ attempt: number | null;
4214
+ billable: boolean;
3790
4215
  usd: number | null;
3791
4216
  so_far_usd?: number;
3792
4217
  unpriced?: number;
@@ -3820,6 +4245,8 @@ export type GetRunUsageResponse = {
3820
4245
  proxy_bytes: number | null;
3821
4246
  } | null;
3822
4247
  provider_record_status: "read" | "not_offered" | "not_found" | "failed" | "no_session" | null;
4248
+ attempt: number | null;
4249
+ billable: boolean;
3823
4250
  }> | null;
3824
4251
  computer_intervals: Array<{
3825
4252
  provider: string;
@@ -3836,7 +4263,10 @@ export type GetRunUsageResponse = {
3836
4263
  ended_at: string | null;
3837
4264
  kept: boolean;
3838
4265
  booked_seconds: number;
4266
+ attempt: number | null;
4267
+ billable: boolean;
3839
4268
  }> | null;
4269
+ infra_usd: number | null;
3840
4270
  reason: "running" | "not_booked" | "reopened" | null;
3841
4271
  };
3842
4272
  /** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
@@ -3920,12 +4350,18 @@ export type StartSdkRunBody = {
3920
4350
  price_usd?: number;
3921
4351
  }>;
3922
4352
  workflow_adapters?: Array<"runNode" | "runJudge">;
4353
+ started_at?: string;
4354
+ title?: string;
4355
+ labels?: Record<string, string>;
3923
4356
  } | {
3924
4357
  runtime: "external";
3925
4358
  platform: string;
3926
4359
  input: string;
3927
4360
  instructions: string;
3928
4361
  model?: string;
4362
+ started_at?: string;
4363
+ title?: string;
4364
+ labels?: Record<string, string>;
3929
4365
  };
3930
4366
  export interface StartSdkRunParams {
3931
4367
  "Idempotency-Key": string;
@@ -4205,6 +4641,7 @@ export type GetStatsResponse = {
4205
4641
  };
4206
4642
  /** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
4207
4643
  export type ApplyTemplateBody = {
4644
+ dry_run?: boolean;
4208
4645
  parameters?: Record<string, unknown>;
4209
4646
  servers?: Record<string, string>;
4210
4647
  grants?: Array<string>;
@@ -4214,6 +4651,8 @@ export type ApplyTemplateBody = {
4214
4651
  choice?: string;
4215
4652
  approvals?: "ask" | "never";
4216
4653
  };
4654
+ revision?: string;
4655
+ sha?: string;
4217
4656
  };
4218
4657
  export interface ApplyTemplateParams {
4219
4658
  "Idempotency-Key"?: string;
@@ -4222,10 +4661,54 @@ export type ApplyTemplateResponse = {
4222
4661
  template: string;
4223
4662
  version: string;
4224
4663
  agent_id: string;
4664
+ revision_id: string | null;
4665
+ revision_version: number;
4666
+ agent_change: "made" | "updated" | "unchanged";
4667
+ servers: Record<string, string | null>;
4668
+ triggers: Array<{
4669
+ trigger_id: string;
4670
+ name: string;
4671
+ kind: "schedule" | "webhook" | "github" | "composio" | "email" | "feed";
4672
+ enabled: boolean;
4673
+ }>;
4674
+ warnings: Array<InputIssue>;
4675
+ webhook_secrets?: Array<{
4676
+ trigger_id: string;
4677
+ secret: SecretMeta;
4678
+ signing_secret?: string;
4679
+ secret_set?: true;
4680
+ note?: string;
4681
+ }>;
4682
+ } | {
4683
+ plan: {
4684
+ action: "create" | "revise";
4685
+ agent_id: string | null;
4686
+ current_revision_id: string | null;
4687
+ missing_secrets: Array<string>;
4688
+ unmatched_mcp: Array<{
4689
+ source: string;
4690
+ toolkit: string;
4691
+ required: boolean;
4692
+ }>;
4693
+ triggers: Array<{
4694
+ name: string;
4695
+ kind: string;
4696
+ action: "create" | "update" | "remove" | "skip";
4697
+ reason?: string;
4698
+ }>;
4699
+ computer: {
4700
+ kind: string;
4701
+ provider: string | null;
4702
+ } | null;
4703
+ };
4704
+ } | {
4705
+ template: string;
4706
+ version: string;
4707
+ agent_id: string;
4708
+ revision_id: string | null;
4225
4709
  revision_version: number;
4226
4710
  agent_change: "made" | "updated" | "unchanged";
4227
4711
  servers: Record<string, string | null>;
4228
- trigger_ids: Array<string>;
4229
4712
  triggers: Array<{
4230
4713
  trigger_id: string;
4231
4714
  name: string;
@@ -4242,9 +4725,105 @@ export type ApplyTemplateResponse = {
4242
4725
  }>;
4243
4726
  };
4244
4727
  /** Remove an imported template package (DELETE /templates/{template}). */
4245
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
4728
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
4729
+ export type GetTemplateResponse = {
4730
+ template: {
4731
+ id: string;
4732
+ bundled: boolean;
4733
+ source: string | null;
4734
+ sha: string | null;
4735
+ publisher: string | null;
4736
+ name: string;
4737
+ display_name: string | null;
4738
+ version: string;
4739
+ description: string;
4740
+ license: string | null;
4741
+ author: {
4742
+ name: string;
4743
+ email?: string;
4744
+ url?: string;
4745
+ } | null;
4746
+ repository: string | null;
4747
+ output: {
4748
+ schema: string;
4749
+ json_schema: Record<string, unknown> | null;
4750
+ } | null;
4751
+ harness: Array<string> | null;
4752
+ model: {
4753
+ tier: "fast" | "balanced" | "strong";
4754
+ prefer?: string;
4755
+ fast?: string;
4756
+ strong?: string;
4757
+ choices?: Array<{
4758
+ id: string;
4759
+ label: string;
4760
+ model: string;
4761
+ harness: string;
4762
+ warning: string | null;
4763
+ note: string | null;
4764
+ secrets: Array<string>;
4765
+ }>;
4766
+ } | null;
4767
+ effort: string | null;
4768
+ tools: Array<string> | null;
4769
+ checkout: "pull_request" | null;
4770
+ tool_policy: {
4771
+ bash: "read-only";
4772
+ } | null;
4773
+ computer: Array<"shell" | "none"> | null;
4774
+ needs: Array<string> | null;
4775
+ computer_here: {
4776
+ entry: "shell" | "none" | null;
4777
+ computer: {
4778
+ kind: string;
4779
+ provider?: string;
4780
+ needs?: Array<string>;
4781
+ } | null;
4782
+ shell: string | null;
4783
+ dropped: Array<string>;
4784
+ note: string | null;
4785
+ } | null;
4786
+ category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
4787
+ tags: Array<string>;
4788
+ mcp: Array<{
4789
+ source: "composio" | "github" | "url";
4790
+ toolkit: string;
4791
+ required: boolean;
4792
+ reason: string | null;
4793
+ tools: Array<{
4794
+ name: string;
4795
+ tool: string;
4796
+ asks: "allow" | "ask";
4797
+ pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
4798
+ keys: Array<string>;
4799
+ }>;
4800
+ }>;
4801
+ }>;
4802
+ parameters: Record<string, unknown>;
4803
+ input_schema: Record<string, unknown> | null;
4804
+ secrets: Array<string>;
4805
+ budget: {
4806
+ per_run_usd: number;
4807
+ max_requests?: number;
4808
+ } | null;
4809
+ learning: boolean | Record<string, unknown>;
4810
+ approvals_default: "ask" | "never";
4811
+ triggers: Array<Record<string, unknown>>;
4812
+ skills: Array<string>;
4813
+ evals: Array<string>;
4814
+ };
4815
+ instructions: string;
4816
+ skill_files: Record<string, string>;
4817
+ console_url: string;
4818
+ };
4819
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
4246
4820
  export type ImportTemplateBody = {
4247
- source: string;
4821
+ source?: string;
4822
+ files?: Array<{
4823
+ path: string;
4824
+ encoding: "utf8" | "base64";
4825
+ content: string;
4826
+ }>;
4248
4827
  dry_run?: boolean;
4249
4828
  trust_publisher?: boolean;
4250
4829
  };
@@ -4293,11 +4872,13 @@ export type ImportTemplateResponse = {
4293
4872
  bash: "read-only";
4294
4873
  } | null;
4295
4874
  computer: Array<"shell" | "none"> | null;
4875
+ needs: Array<string> | null;
4296
4876
  computer_here: {
4297
4877
  entry: "shell" | "none" | null;
4298
4878
  computer: {
4299
4879
  kind: string;
4300
4880
  provider?: string;
4881
+ needs?: Array<string>;
4301
4882
  } | null;
4302
4883
  shell: string | null;
4303
4884
  dropped: Array<string>;
@@ -4324,6 +4905,7 @@ export type ImportTemplateResponse = {
4324
4905
  secrets: Array<string>;
4325
4906
  budget: {
4326
4907
  per_run_usd: number;
4908
+ max_requests?: number;
4327
4909
  } | null;
4328
4910
  learning: boolean | Record<string, unknown>;
4329
4911
  approvals_default: "ask" | "never";
@@ -4384,11 +4966,13 @@ export type ListTemplatesResponse = {
4384
4966
  bash: "read-only";
4385
4967
  } | null;
4386
4968
  computer: Array<"shell" | "none"> | null;
4969
+ needs: Array<string> | null;
4387
4970
  computer_here: {
4388
4971
  entry: "shell" | "none" | null;
4389
4972
  computer: {
4390
4973
  kind: string;
4391
4974
  provider?: string;
4975
+ needs?: Array<string>;
4392
4976
  } | null;
4393
4977
  shell: string | null;
4394
4978
  dropped: Array<string>;
@@ -4415,6 +4999,7 @@ export type ListTemplatesResponse = {
4415
4999
  secrets: Array<string>;
4416
5000
  budget: {
4417
5001
  per_run_usd: number;
5002
+ max_requests?: number;
4418
5003
  } | null;
4419
5004
  learning: boolean | Record<string, unknown>;
4420
5005
  approvals_default: "ask" | "never";
@@ -4868,6 +5453,7 @@ export type CreateTriggerResponse = {
4868
5453
  count?: number;
4869
5454
  attempts?: number;
4870
5455
  retry_at?: string;
5456
+ start_by?: string;
4871
5457
  catch_up?: true;
4872
5458
  } | null;
4873
5459
  last_check?: {
@@ -4908,6 +5494,7 @@ export type FireTriggerResponse = {
4908
5494
  count?: number;
4909
5495
  attempts?: number;
4910
5496
  retry_at?: string;
5497
+ start_by?: string;
4911
5498
  catch_up?: true;
4912
5499
  };
4913
5500
  /** The trigger's last 200 firings, newest first (GET /triggers/{trigger_id}/firings). */
@@ -4927,6 +5514,7 @@ export type ListTriggerFiringsResponse = {
4927
5514
  count?: number;
4928
5515
  attempts?: number;
4929
5516
  retry_at?: string;
5517
+ start_by?: string;
4930
5518
  catch_up?: true;
4931
5519
  }>;
4932
5520
  };
@@ -5099,6 +5687,7 @@ export type GetTriggerResponse = {
5099
5687
  count?: number;
5100
5688
  attempts?: number;
5101
5689
  retry_at?: string;
5690
+ start_by?: string;
5102
5691
  catch_up?: true;
5103
5692
  } | null;
5104
5693
  last_check?: {
@@ -5280,6 +5869,7 @@ export type ListTriggersResponse = {
5280
5869
  count?: number;
5281
5870
  attempts?: number;
5282
5871
  retry_at?: string;
5872
+ start_by?: string;
5283
5873
  catch_up?: true;
5284
5874
  } | null;
5285
5875
  last_check?: {
@@ -5594,6 +6184,7 @@ export type UpdateTriggerResponse = {
5594
6184
  count?: number;
5595
6185
  attempts?: number;
5596
6186
  retry_at?: string;
6187
+ start_by?: string;
5597
6188
  catch_up?: true;
5598
6189
  } | null;
5599
6190
  last_check?: {
@@ -5738,6 +6329,8 @@ export declare function resources(call: Call): {
5738
6329
  agents: {
5739
6330
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
5740
6331
  archive: (agentId: string, options?: RequestOptions) => Promise<ArchiveAgentResponse>;
6332
+ /** Choose the existing destination account for a required source tool (POST /agents/{agent_id}/source/tools). */
6333
+ bindSourceTool: (agentId: string, body: BindSourceToolBody, options?: RequestOptions) => Promise<BindSourceToolResponse>;
5741
6334
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
5742
6335
  connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
5743
6336
  /** Create an agent home (POST /agents). */
@@ -5760,14 +6353,26 @@ export declare function resources(call: Call): {
5760
6353
  getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
5761
6354
  /** Read a native connection (GET /agents/{agent_id}/native). */
5762
6355
  getNative: (agentId: string, options?: RequestOptions) => Promise<GetNativeResponse>;
6356
+ /** Read source sync and managed Move readiness (GET /agents/{agent_id}/source). */
6357
+ getSourceSync: (agentId: string, options?: RequestOptions) => Promise<GetSourceSyncResponse>;
5763
6358
  /** List agents (GET /agents). */
5764
6359
  list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
5765
6360
  /** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
5766
6361
  listLearningAudits: (agentId: string, options?: RequestOptions) => Promise<ListLearningAuditsResponse>;
5767
6362
  /** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
5768
6363
  listLearningPromotions: (agentId: string, options?: RequestOptions) => Promise<ListLearningPromotionsResponse>;
6364
+ /** Move the same agent to server-managed execution from its complete synchronized setup (POST /agents/{agent_id}/source/move). */
6365
+ moveSourceAgent: (agentId: string, body: MoveSourceAgentBody, options?: RequestOptions) => Promise<MoveSourceAgentResponse>;
6366
+ /** The agent's current revision as a template package (GET /agents/{agent_id}/package). */
6367
+ package: (agentId: string, options?: RequestOptions) => Promise<GetAgentPackageResponse>;
6368
+ /** Use an explicitly reviewed source snapshot while retaining the prior managed revision in history (POST /agents/{agent_id}/source/resolve). */
6369
+ resolveSourceSync: (agentId: string, body: ResolveSourceSyncBody, options?: RequestOptions) => Promise<ResolveSourceSyncResponse>;
6370
+ /** Acknowledge exact unresolved run receipts and allow later runs to use the saved project (POST /agents/{agent_id}/source/project-review). */
6371
+ reviewSourceProject: (agentId: string, body: ReviewSourceProjectBody, options?: RequestOptions) => Promise<ReviewSourceProjectResponse>;
5769
6372
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
5770
6373
  runs: (agentId: string, params?: ListRunsParams, options?: RequestOptions) => Promise<ListRunsResponse>;
6374
+ /** Enable or pause this agent’s source sync (PATCH /agents/{agent_id}/source). */
6375
+ setSourceSync: (agentId: string, body: SetSourceSyncBody, options?: RequestOptions) => Promise<SetSourceSyncResponse>;
5771
6376
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
5772
6377
  unarchive: (agentId: string, options?: RequestOptions) => Promise<UnarchiveAgentResponse>;
5773
6378
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -5800,6 +6405,8 @@ export declare function resources(call: Call): {
5800
6405
  completeRemoteCommand: (connectorId: string, commandId: string, body: CompleteRemoteCommandBody, options?: RequestOptions) => Promise<CompleteRemoteCommandResponse>;
5801
6406
  /** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
5802
6407
  enrollRemoteConnector: (body: EnrollRemoteConnectorBody, options?: RequestOptions) => Promise<EnrollRemoteConnectorResponse>;
6408
+ /** Read or establish this explicitly authorized source sync grant without re-enabling a paused grant (POST /connectors/{connector_id}/targets/{target_id}/sync/grant). */
6409
+ grantSourceSync: (connectorId: string, targetId: string, body: GrantSourceSyncBody, options?: RequestOptions) => Promise<GrantSourceSyncResponse>;
5803
6410
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
5804
6411
  importRemoteHistory: (connectorId: string, targetId: string, body: ImportRemoteHistoryBody, options?: RequestOptions) => Promise<ImportRemoteHistoryResponse>;
5805
6412
  /** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
@@ -5808,12 +6415,16 @@ export declare function resources(call: Call): {
5808
6415
  listRemoteConnectors: (options?: RequestOptions) => Promise<ListRemoteConnectorsResponse>;
5809
6416
  /** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
5810
6417
  pollRemoteConnector: (connectorId: string, body: PollRemoteConnectorBody, options?: RequestOptions) => Promise<PollRemoteConnectorResponse>;
6418
+ /** Publish a bounded source snapshot under its grant and sequence (POST /connectors/{connector_id}/targets/{target_id}/sync). */
6419
+ publishSourceSync: (connectorId: string, targetId: string, body: PublishSourceSyncBody, options?: RequestOptions) => Promise<PublishSourceSyncResponse>;
5811
6420
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
5812
6421
  registerRemoteConnector: (body: RegisterRemoteConnectorBody, options?: RequestOptions) => Promise<RegisterRemoteConnectorResponse>;
5813
6422
  /** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
5814
6423
  remoteCommandEvents: (connectorId: string, commandId: string, body: RemoteCommandEventsBody, options?: RequestOptions) => Promise<RemoteCommandEventsResponse>;
5815
6424
  /** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
5816
6425
  revokeRemoteConnector: (connectorId: string, options?: RequestOptions) => Promise<RevokeRemoteConnectorResponse>;
6426
+ /** Record a fixed source failure while preserving its last complete snapshot (POST /connectors/{connector_id}/targets/{target_id}/sync/status). */
6427
+ sourceSyncFailure: (connectorId: string, targetId: string, body: SourceSyncFailureBody, options?: RequestOptions) => Promise<SourceSyncFailureResponse>;
5817
6428
  };
5818
6429
  files: {
5819
6430
  /** Reserve an upload (POST /files). */
@@ -5850,6 +6461,8 @@ export declare function resources(call: Call): {
5850
6461
  read: (agentId: string, file: string, options?: RequestOptions) => Promise<Tagged<ReadLearningFileResponse | string>>;
5851
6462
  /** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
5852
6463
  replay: (agentId: string, name: string, digest: string, replayId: string, options?: RequestOptions) => Promise<GetLearnedWorkflowReplayResponse>;
6464
+ /** Reset the agent's learning: everything it learned deleted, the agent and its runs kept (DELETE /agents/{agent_id}/learning). */
6465
+ reset: (agentId: string, options?: RequestOptions) => Promise<void>;
5853
6466
  /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
5854
6467
  retire: (agentId: string, file: string, params?: RetireLearningFileParams, options?: RequestOptions) => Promise<Tagged<string>>;
5855
6468
  /** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
@@ -5900,6 +6513,8 @@ export declare function resources(call: Call): {
5900
6513
  listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
5901
6514
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
5902
6515
  listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
6516
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
6517
+ listMcpServerNames: (options?: RequestOptions) => Promise<ListMcpServerNamesResponse>;
5903
6518
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
5904
6519
  putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
5905
6520
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
@@ -6066,7 +6681,9 @@ export declare function resources(call: Call): {
6066
6681
  apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
6067
6682
  /** Remove an imported template package (DELETE /templates/{template}). */
6068
6683
  delete: (template: string, options?: RequestOptions) => Promise<void>;
6069
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
6684
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
6685
+ get: (template: string, options?: RequestOptions) => Promise<GetTemplateResponse>;
6686
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
6070
6687
  import: (body: ImportTemplateBody, options?: RequestOptions) => Promise<ImportTemplateResponse>;
6071
6688
  /** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
6072
6689
  list: (options?: RequestOptions) => Promise<ListTemplatesResponse>;
@@ -1,6 +1,7 @@
1
1
  /** Each operation as the runtime sends it, by operationId. */
2
2
  export const OPERATIONS = {
3
3
  archiveAgent: { "method": "POST", "path": "/agents/{agent_id}/archive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
4
+ bindSourceTool: { "method": "POST", "path": "/agents/{agent_id}/source/tools", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
4
5
  connectNative: { "method": "POST", "path": "/native/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
5
6
  createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
6
7
  deleteAgent: { "method": "DELETE", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -12,10 +13,16 @@ export const OPERATIONS = {
12
13
  getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
13
14
  getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
14
15
  getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
+ getSourceSync: { "method": "GET", "path": "/agents/{agent_id}/source", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
15
17
  listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
18
  listLearningAudits: { "method": "GET", "path": "/agents/{agent_id}/learning/audits", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
17
19
  listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
20
+ moveSourceAgent: { "method": "POST", "path": "/agents/{agent_id}/source/move", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
21
+ getAgentPackage: { "method": "GET", "path": "/agents/{agent_id}/package", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
22
+ resolveSourceSync: { "method": "POST", "path": "/agents/{agent_id}/source/resolve", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
23
+ reviewSourceProject: { "method": "POST", "path": "/agents/{agent_id}/source/project-review", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
18
24
  listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
25
+ setSourceSync: { "method": "PATCH", "path": "/agents/{agent_id}/source", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
19
26
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
20
27
  updateDefinition: { "method": "PUT", "path": "/agents/{agent_id}/definition", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
21
28
  verifyNative: { "method": "POST", "path": "/agents/{agent_id}/native/verify", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -29,13 +36,16 @@ export const OPERATIONS = {
29
36
  startCliLearningRun: { "method": "POST", "path": "/cli-learning/connections/{connection_id}/runs", "pathParams": ["connection_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
30
37
  completeRemoteCommand: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/complete", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
31
38
  enrollRemoteConnector: { "method": "POST", "path": "/connectors/enrollment", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
39
+ grantSourceSync: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync/grant", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
32
40
  importRemoteHistory: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/history", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
33
41
  importRemoteTarget: { "method": "POST", "path": "/connectors/{connector_id}/import", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
34
42
  listRemoteConnectors: { "method": "GET", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
35
43
  pollRemoteConnector: { "method": "POST", "path": "/connectors/{connector_id}/poll", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
44
+ publishSourceSync: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
36
45
  registerRemoteConnector: { "method": "POST", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
37
46
  remoteCommandEvents: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/events", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
38
47
  revokeRemoteConnector: { "method": "DELETE", "path": "/connectors/{connector_id}", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
48
+ sourceSyncFailure: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync/status", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
39
49
  createFile: { "method": "POST", "path": "/files", "pathParams": [], "multiSegment": [], "query": ["path", "content_type", "sha256"], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json", "application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
40
50
  deleteFile: { "method": "DELETE", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
41
51
  getFile: { "method": "GET", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -51,6 +61,7 @@ export const OPERATIONS = {
51
61
  listLearningLog: { "method": "GET", "path": "/agents/{agent_id}/learning/log", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
52
62
  readLearningFile: { "method": "GET", "path": "/agents/{agent_id}/learning/files/{file}", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": true },
53
63
  getLearnedWorkflowReplay: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}", "pathParams": ["agent_id", "name", "digest", "replay_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
64
+ deleteAgentLearning: { "method": "DELETE", "path": "/agents/{agent_id}/learning", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
54
65
  retireLearningFile: { "method": "POST", "path": "/agents/{agent_id}/learning/files/{file}/retire", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": null, "answer": "text", "secret": false, "publicFields": [], "tagged": true },
55
66
  listLearnedWorkflowRevisions: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions", "pathParams": ["agent_id", "name"], "multiSegment": [], "query": ["limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
56
67
  putLearningCorrections: { "method": "PUT", "path": "/agents/{agent_id}/learning/corrections", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
@@ -78,6 +89,7 @@ export const OPERATIONS = {
78
89
  listComposioTriggers: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/triggers", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
79
90
  listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
80
91
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
92
+ listMcpServerNames: { "method": "GET", "path": "/settings/mcp-server-names", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
81
93
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
94
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
83
95
  rotateComposioSecret: { "method": "POST", "path": "/settings/mcp-servers/{name}/composio/rotate-secret", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -153,6 +165,7 @@ export const OPERATIONS = {
153
165
  getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
154
166
  applyTemplate: { "method": "POST", "path": "/templates/{template}/apply", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
155
167
  deleteTemplate: { "method": "DELETE", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
168
+ getTemplate: { "method": "GET", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
156
169
  importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
157
170
  listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
158
171
  deleteToolKey: { "method": "DELETE", "path": "/settings/tool-keys/{key_id}", "pathParams": ["key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -184,6 +197,8 @@ export function resources(call) {
184
197
  agents: {
185
198
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
186
199
  archive: (agentId, options) => call("archiveAgent", [agentId], undefined, undefined, options),
200
+ /** Choose the existing destination account for a required source tool (POST /agents/{agent_id}/source/tools). */
201
+ bindSourceTool: (agentId, body, options) => call("bindSourceTool", [agentId], body, undefined, options),
187
202
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
188
203
  connectNative: (body, options) => call("connectNative", [], body, undefined, options),
189
204
  /** Create an agent home (POST /agents). */
@@ -206,14 +221,26 @@ export function resources(call) {
206
221
  getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
207
222
  /** Read a native connection (GET /agents/{agent_id}/native). */
208
223
  getNative: (agentId, options) => call("getNative", [agentId], undefined, undefined, options),
224
+ /** Read source sync and managed Move readiness (GET /agents/{agent_id}/source). */
225
+ getSourceSync: (agentId, options) => call("getSourceSync", [agentId], undefined, undefined, options),
209
226
  /** List agents (GET /agents). */
210
227
  list: (params, options) => call("listAgents", [], undefined, params, options),
211
228
  /** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
212
229
  listLearningAudits: (agentId, options) => call("listLearningAudits", [agentId], undefined, undefined, options),
213
230
  /** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
214
231
  listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
232
+ /** Move the same agent to server-managed execution from its complete synchronized setup (POST /agents/{agent_id}/source/move). */
233
+ moveSourceAgent: (agentId, body, options) => call("moveSourceAgent", [agentId], body, undefined, options),
234
+ /** The agent's current revision as a template package (GET /agents/{agent_id}/package). */
235
+ package: (agentId, options) => call("getAgentPackage", [agentId], undefined, undefined, options),
236
+ /** Use an explicitly reviewed source snapshot while retaining the prior managed revision in history (POST /agents/{agent_id}/source/resolve). */
237
+ resolveSourceSync: (agentId, body, options) => call("resolveSourceSync", [agentId], body, undefined, options),
238
+ /** Acknowledge exact unresolved run receipts and allow later runs to use the saved project (POST /agents/{agent_id}/source/project-review). */
239
+ reviewSourceProject: (agentId, body, options) => call("reviewSourceProject", [agentId], body, undefined, options),
215
240
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
216
241
  runs: (agentId, params, options) => call("listRuns", [agentId], undefined, params, options),
242
+ /** Enable or pause this agent’s source sync (PATCH /agents/{agent_id}/source). */
243
+ setSourceSync: (agentId, body, options) => call("setSourceSync", [agentId], body, undefined, options),
217
244
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
218
245
  unarchive: (agentId, options) => call("unarchiveAgent", [agentId], undefined, undefined, options),
219
246
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -246,6 +273,8 @@ export function resources(call) {
246
273
  completeRemoteCommand: (connectorId, commandId, body, options) => call("completeRemoteCommand", [connectorId, commandId], body, undefined, options),
247
274
  /** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
248
275
  enrollRemoteConnector: (body, options) => call("enrollRemoteConnector", [], body, undefined, options),
276
+ /** Read or establish this explicitly authorized source sync grant without re-enabling a paused grant (POST /connectors/{connector_id}/targets/{target_id}/sync/grant). */
277
+ grantSourceSync: (connectorId, targetId, body, options) => call("grantSourceSync", [connectorId, targetId], body, undefined, options),
249
278
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
250
279
  importRemoteHistory: (connectorId, targetId, body, options) => call("importRemoteHistory", [connectorId, targetId], body, undefined, options),
251
280
  /** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
@@ -254,12 +283,16 @@ export function resources(call) {
254
283
  listRemoteConnectors: (options) => call("listRemoteConnectors", [], undefined, undefined, options),
255
284
  /** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
256
285
  pollRemoteConnector: (connectorId, body, options) => call("pollRemoteConnector", [connectorId], body, undefined, options),
286
+ /** Publish a bounded source snapshot under its grant and sequence (POST /connectors/{connector_id}/targets/{target_id}/sync). */
287
+ publishSourceSync: (connectorId, targetId, body, options) => call("publishSourceSync", [connectorId, targetId], body, undefined, options),
257
288
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
258
289
  registerRemoteConnector: (body, options) => call("registerRemoteConnector", [], body, undefined, options),
259
290
  /** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
260
291
  remoteCommandEvents: (connectorId, commandId, body, options) => call("remoteCommandEvents", [connectorId, commandId], body, undefined, options),
261
292
  /** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
262
293
  revokeRemoteConnector: (connectorId, options) => call("revokeRemoteConnector", [connectorId], undefined, undefined, options),
294
+ /** Record a fixed source failure while preserving its last complete snapshot (POST /connectors/{connector_id}/targets/{target_id}/sync/status). */
295
+ sourceSyncFailure: (connectorId, targetId, body, options) => call("sourceSyncFailure", [connectorId, targetId], body, undefined, options),
263
296
  },
264
297
  files: {
265
298
  /** Reserve an upload (POST /files). */
@@ -296,6 +329,8 @@ export function resources(call) {
296
329
  read: (agentId, file, options) => call("readLearningFile", [agentId, file], undefined, undefined, options),
297
330
  /** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
298
331
  replay: (agentId, name, digest, replayId, options) => call("getLearnedWorkflowReplay", [agentId, name, digest, replayId], undefined, undefined, options),
332
+ /** Reset the agent's learning: everything it learned deleted, the agent and its runs kept (DELETE /agents/{agent_id}/learning). */
333
+ reset: (agentId, options) => call("deleteAgentLearning", [agentId], undefined, undefined, options),
299
334
  /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
300
335
  retire: (agentId, file, params, options) => call("retireLearningFile", [agentId, file], undefined, params, options),
301
336
  /** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
@@ -346,6 +381,8 @@ export function resources(call) {
346
381
  listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
347
382
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
348
383
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
384
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
385
+ listMcpServerNames: (options) => call("listMcpServerNames", [], undefined, undefined, options),
349
386
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
350
387
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
351
388
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
@@ -512,7 +549,9 @@ export function resources(call) {
512
549
  apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
513
550
  /** Remove an imported template package (DELETE /templates/{template}). */
514
551
  delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
515
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
552
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
553
+ get: (template, options) => call("getTemplate", [template], undefined, undefined, options),
554
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
516
555
  import: (body, options) => call("importTemplate", [], body, undefined, options),
517
556
  /** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
518
557
  list: (options) => call("listTemplates", [], undefined, undefined, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.51",
3
+ "version": "0.1.0-beta.53",
4
4
  "description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -83,6 +83,6 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@parcha/agentrun-dsl": "0.1.0-beta.51"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.53"
87
87
  }
88
88
  }