@parcha/agentrun-client 0.1.0-beta.52 → 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?: {
|
|
@@ -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 {
|
|
@@ -2773,6 +3133,10 @@ export type ListComputersResponse = {
|
|
|
2773
3133
|
shell_note?: string;
|
|
2774
3134
|
}>;
|
|
2775
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
|
+
};
|
|
2776
3140
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
2777
3141
|
export type PutWorkspaceArchilBody = {
|
|
2778
3142
|
region: string;
|
|
@@ -2812,6 +3176,7 @@ export type ReceiveHookComposioResponse = {
|
|
|
2812
3176
|
count?: number;
|
|
2813
3177
|
attempts?: number;
|
|
2814
3178
|
retry_at?: string;
|
|
3179
|
+
start_by?: string;
|
|
2815
3180
|
catch_up?: true;
|
|
2816
3181
|
} | {
|
|
2817
3182
|
ok: "duplicate";
|
|
@@ -2834,6 +3199,7 @@ export type ReceiveHookComposioResponse = {
|
|
|
2834
3199
|
count?: number;
|
|
2835
3200
|
attempts?: number;
|
|
2836
3201
|
retry_at?: string;
|
|
3202
|
+
start_by?: string;
|
|
2837
3203
|
catch_up?: true;
|
|
2838
3204
|
} | {
|
|
2839
3205
|
ok: "duplicate";
|
|
@@ -2886,6 +3252,7 @@ export type SaveComposioServerResponse = {
|
|
|
2886
3252
|
name: string;
|
|
2887
3253
|
title?: string;
|
|
2888
3254
|
description?: string;
|
|
3255
|
+
resource?: "list" | "templates" | "read";
|
|
2889
3256
|
input_schema: Record<string, unknown>;
|
|
2890
3257
|
output_schema?: Record<string, unknown>;
|
|
2891
3258
|
annotations?: Record<string, unknown>;
|
|
@@ -3175,6 +3542,7 @@ export type GetMcpServerResponse = {
|
|
|
3175
3542
|
name: string;
|
|
3176
3543
|
title?: string;
|
|
3177
3544
|
description?: string;
|
|
3545
|
+
resource?: "list" | "templates" | "read";
|
|
3178
3546
|
input_schema: Record<string, unknown>;
|
|
3179
3547
|
output_schema?: Record<string, unknown>;
|
|
3180
3548
|
annotations?: Record<string, unknown>;
|
|
@@ -3219,6 +3587,7 @@ export type ListMcpServersResponse = {
|
|
|
3219
3587
|
name: string;
|
|
3220
3588
|
title?: string;
|
|
3221
3589
|
description?: string;
|
|
3590
|
+
resource?: "list" | "templates" | "read";
|
|
3222
3591
|
input_schema: Record<string, unknown>;
|
|
3223
3592
|
output_schema?: Record<string, unknown>;
|
|
3224
3593
|
annotations?: Record<string, unknown>;
|
|
@@ -3261,6 +3630,7 @@ export type PreviewMcpServerResponse = {
|
|
|
3261
3630
|
name: string;
|
|
3262
3631
|
title?: string;
|
|
3263
3632
|
description?: string;
|
|
3633
|
+
resource?: "list" | "templates" | "read";
|
|
3264
3634
|
input_schema: Record<string, unknown>;
|
|
3265
3635
|
output_schema?: Record<string, unknown>;
|
|
3266
3636
|
annotations?: Record<string, unknown>;
|
|
@@ -3307,6 +3677,7 @@ export type RefreshMcpServerResponse = {
|
|
|
3307
3677
|
name: string;
|
|
3308
3678
|
title?: string;
|
|
3309
3679
|
description?: string;
|
|
3680
|
+
resource?: "list" | "templates" | "read";
|
|
3310
3681
|
input_schema: Record<string, unknown>;
|
|
3311
3682
|
output_schema?: Record<string, unknown>;
|
|
3312
3683
|
annotations?: Record<string, unknown>;
|
|
@@ -3361,6 +3732,7 @@ export type SaveMcpServerResponse = {
|
|
|
3361
3732
|
name: string;
|
|
3362
3733
|
title?: string;
|
|
3363
3734
|
description?: string;
|
|
3735
|
+
resource?: "list" | "templates" | "read";
|
|
3364
3736
|
input_schema: Record<string, unknown>;
|
|
3365
3737
|
output_schema?: Record<string, unknown>;
|
|
3366
3738
|
annotations?: Record<string, unknown>;
|
|
@@ -3490,6 +3862,7 @@ export type ListRevisionsResponse = {
|
|
|
3490
3862
|
name: string;
|
|
3491
3863
|
title?: string;
|
|
3492
3864
|
description?: string;
|
|
3865
|
+
resource?: "list" | "templates" | "read";
|
|
3493
3866
|
input_schema: Record<string, unknown>;
|
|
3494
3867
|
annotations?: Record<string, unknown>;
|
|
3495
3868
|
}>;
|
|
@@ -3977,12 +4350,18 @@ export type StartSdkRunBody = {
|
|
|
3977
4350
|
price_usd?: number;
|
|
3978
4351
|
}>;
|
|
3979
4352
|
workflow_adapters?: Array<"runNode" | "runJudge">;
|
|
4353
|
+
started_at?: string;
|
|
4354
|
+
title?: string;
|
|
4355
|
+
labels?: Record<string, string>;
|
|
3980
4356
|
} | {
|
|
3981
4357
|
runtime: "external";
|
|
3982
4358
|
platform: string;
|
|
3983
4359
|
input: string;
|
|
3984
4360
|
instructions: string;
|
|
3985
4361
|
model?: string;
|
|
4362
|
+
started_at?: string;
|
|
4363
|
+
title?: string;
|
|
4364
|
+
labels?: Record<string, string>;
|
|
3986
4365
|
};
|
|
3987
4366
|
export interface StartSdkRunParams {
|
|
3988
4367
|
"Idempotency-Key": string;
|
|
@@ -4262,6 +4641,7 @@ export type GetStatsResponse = {
|
|
|
4262
4641
|
};
|
|
4263
4642
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
4264
4643
|
export type ApplyTemplateBody = {
|
|
4644
|
+
dry_run?: boolean;
|
|
4265
4645
|
parameters?: Record<string, unknown>;
|
|
4266
4646
|
servers?: Record<string, string>;
|
|
4267
4647
|
grants?: Array<string>;
|
|
@@ -4271,6 +4651,8 @@ export type ApplyTemplateBody = {
|
|
|
4271
4651
|
choice?: string;
|
|
4272
4652
|
approvals?: "ask" | "never";
|
|
4273
4653
|
};
|
|
4654
|
+
revision?: string;
|
|
4655
|
+
sha?: string;
|
|
4274
4656
|
};
|
|
4275
4657
|
export interface ApplyTemplateParams {
|
|
4276
4658
|
"Idempotency-Key"?: string;
|
|
@@ -4279,6 +4661,51 @@ export type ApplyTemplateResponse = {
|
|
|
4279
4661
|
template: string;
|
|
4280
4662
|
version: string;
|
|
4281
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;
|
|
4282
4709
|
revision_version: number;
|
|
4283
4710
|
agent_change: "made" | "updated" | "unchanged";
|
|
4284
4711
|
servers: Record<string, string | null>;
|
|
@@ -4298,9 +4725,105 @@ export type ApplyTemplateResponse = {
|
|
|
4298
4725
|
}>;
|
|
4299
4726
|
};
|
|
4300
4727
|
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
4301
|
-
/**
|
|
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). */
|
|
4302
4820
|
export type ImportTemplateBody = {
|
|
4303
|
-
source
|
|
4821
|
+
source?: string;
|
|
4822
|
+
files?: Array<{
|
|
4823
|
+
path: string;
|
|
4824
|
+
encoding: "utf8" | "base64";
|
|
4825
|
+
content: string;
|
|
4826
|
+
}>;
|
|
4304
4827
|
dry_run?: boolean;
|
|
4305
4828
|
trust_publisher?: boolean;
|
|
4306
4829
|
};
|
|
@@ -4349,11 +4872,13 @@ export type ImportTemplateResponse = {
|
|
|
4349
4872
|
bash: "read-only";
|
|
4350
4873
|
} | null;
|
|
4351
4874
|
computer: Array<"shell" | "none"> | null;
|
|
4875
|
+
needs: Array<string> | null;
|
|
4352
4876
|
computer_here: {
|
|
4353
4877
|
entry: "shell" | "none" | null;
|
|
4354
4878
|
computer: {
|
|
4355
4879
|
kind: string;
|
|
4356
4880
|
provider?: string;
|
|
4881
|
+
needs?: Array<string>;
|
|
4357
4882
|
} | null;
|
|
4358
4883
|
shell: string | null;
|
|
4359
4884
|
dropped: Array<string>;
|
|
@@ -4441,11 +4966,13 @@ export type ListTemplatesResponse = {
|
|
|
4441
4966
|
bash: "read-only";
|
|
4442
4967
|
} | null;
|
|
4443
4968
|
computer: Array<"shell" | "none"> | null;
|
|
4969
|
+
needs: Array<string> | null;
|
|
4444
4970
|
computer_here: {
|
|
4445
4971
|
entry: "shell" | "none" | null;
|
|
4446
4972
|
computer: {
|
|
4447
4973
|
kind: string;
|
|
4448
4974
|
provider?: string;
|
|
4975
|
+
needs?: Array<string>;
|
|
4449
4976
|
} | null;
|
|
4450
4977
|
shell: string | null;
|
|
4451
4978
|
dropped: Array<string>;
|
|
@@ -4926,6 +5453,7 @@ export type CreateTriggerResponse = {
|
|
|
4926
5453
|
count?: number;
|
|
4927
5454
|
attempts?: number;
|
|
4928
5455
|
retry_at?: string;
|
|
5456
|
+
start_by?: string;
|
|
4929
5457
|
catch_up?: true;
|
|
4930
5458
|
} | null;
|
|
4931
5459
|
last_check?: {
|
|
@@ -4966,6 +5494,7 @@ export type FireTriggerResponse = {
|
|
|
4966
5494
|
count?: number;
|
|
4967
5495
|
attempts?: number;
|
|
4968
5496
|
retry_at?: string;
|
|
5497
|
+
start_by?: string;
|
|
4969
5498
|
catch_up?: true;
|
|
4970
5499
|
};
|
|
4971
5500
|
/** The trigger's last 200 firings, newest first (GET /triggers/{trigger_id}/firings). */
|
|
@@ -4985,6 +5514,7 @@ export type ListTriggerFiringsResponse = {
|
|
|
4985
5514
|
count?: number;
|
|
4986
5515
|
attempts?: number;
|
|
4987
5516
|
retry_at?: string;
|
|
5517
|
+
start_by?: string;
|
|
4988
5518
|
catch_up?: true;
|
|
4989
5519
|
}>;
|
|
4990
5520
|
};
|
|
@@ -5157,6 +5687,7 @@ export type GetTriggerResponse = {
|
|
|
5157
5687
|
count?: number;
|
|
5158
5688
|
attempts?: number;
|
|
5159
5689
|
retry_at?: string;
|
|
5690
|
+
start_by?: string;
|
|
5160
5691
|
catch_up?: true;
|
|
5161
5692
|
} | null;
|
|
5162
5693
|
last_check?: {
|
|
@@ -5338,6 +5869,7 @@ export type ListTriggersResponse = {
|
|
|
5338
5869
|
count?: number;
|
|
5339
5870
|
attempts?: number;
|
|
5340
5871
|
retry_at?: string;
|
|
5872
|
+
start_by?: string;
|
|
5341
5873
|
catch_up?: true;
|
|
5342
5874
|
} | null;
|
|
5343
5875
|
last_check?: {
|
|
@@ -5652,6 +6184,7 @@ export type UpdateTriggerResponse = {
|
|
|
5652
6184
|
count?: number;
|
|
5653
6185
|
attempts?: number;
|
|
5654
6186
|
retry_at?: string;
|
|
6187
|
+
start_by?: string;
|
|
5655
6188
|
catch_up?: true;
|
|
5656
6189
|
} | null;
|
|
5657
6190
|
last_check?: {
|
|
@@ -5796,6 +6329,8 @@ export declare function resources(call: Call): {
|
|
|
5796
6329
|
agents: {
|
|
5797
6330
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
5798
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>;
|
|
5799
6334
|
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
5800
6335
|
connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
|
|
5801
6336
|
/** Create an agent home (POST /agents). */
|
|
@@ -5818,14 +6353,26 @@ export declare function resources(call: Call): {
|
|
|
5818
6353
|
getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
|
|
5819
6354
|
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
5820
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>;
|
|
5821
6358
|
/** List agents (GET /agents). */
|
|
5822
6359
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
5823
6360
|
/** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
|
|
5824
6361
|
listLearningAudits: (agentId: string, options?: RequestOptions) => Promise<ListLearningAuditsResponse>;
|
|
5825
6362
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
5826
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>;
|
|
5827
6372
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
5828
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>;
|
|
5829
6376
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
5830
6377
|
unarchive: (agentId: string, options?: RequestOptions) => Promise<UnarchiveAgentResponse>;
|
|
5831
6378
|
/** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
|
|
@@ -5858,6 +6405,8 @@ export declare function resources(call: Call): {
|
|
|
5858
6405
|
completeRemoteCommand: (connectorId: string, commandId: string, body: CompleteRemoteCommandBody, options?: RequestOptions) => Promise<CompleteRemoteCommandResponse>;
|
|
5859
6406
|
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
5860
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>;
|
|
5861
6410
|
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
5862
6411
|
importRemoteHistory: (connectorId: string, targetId: string, body: ImportRemoteHistoryBody, options?: RequestOptions) => Promise<ImportRemoteHistoryResponse>;
|
|
5863
6412
|
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
@@ -5866,12 +6415,16 @@ export declare function resources(call: Call): {
|
|
|
5866
6415
|
listRemoteConnectors: (options?: RequestOptions) => Promise<ListRemoteConnectorsResponse>;
|
|
5867
6416
|
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
5868
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>;
|
|
5869
6420
|
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
5870
6421
|
registerRemoteConnector: (body: RegisterRemoteConnectorBody, options?: RequestOptions) => Promise<RegisterRemoteConnectorResponse>;
|
|
5871
6422
|
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
5872
6423
|
remoteCommandEvents: (connectorId: string, commandId: string, body: RemoteCommandEventsBody, options?: RequestOptions) => Promise<RemoteCommandEventsResponse>;
|
|
5873
6424
|
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
5874
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>;
|
|
5875
6428
|
};
|
|
5876
6429
|
files: {
|
|
5877
6430
|
/** Reserve an upload (POST /files). */
|
|
@@ -5960,6 +6513,8 @@ export declare function resources(call: Call): {
|
|
|
5960
6513
|
listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
|
|
5961
6514
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
5962
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>;
|
|
5963
6518
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
5964
6519
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
5965
6520
|
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
@@ -6126,7 +6681,9 @@ export declare function resources(call: Call): {
|
|
|
6126
6681
|
apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
|
|
6127
6682
|
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
6128
6683
|
delete: (template: string, options?: RequestOptions) => Promise<void>;
|
|
6129
|
-
/**
|
|
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). */
|
|
6130
6687
|
import: (body: ImportTemplateBody, options?: RequestOptions) => Promise<ImportTemplateResponse>;
|
|
6131
6688
|
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
6132
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 },
|
|
@@ -79,6 +89,7 @@ export const OPERATIONS = {
|
|
|
79
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 },
|
|
80
90
|
listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
81
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 },
|
|
82
93
|
putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
83
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 },
|
|
84
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 },
|
|
@@ -154,6 +165,7 @@ export const OPERATIONS = {
|
|
|
154
165
|
getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
155
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 },
|
|
156
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 },
|
|
157
169
|
importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
158
170
|
listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
159
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 },
|
|
@@ -185,6 +197,8 @@ export function resources(call) {
|
|
|
185
197
|
agents: {
|
|
186
198
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
187
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),
|
|
188
202
|
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
189
203
|
connectNative: (body, options) => call("connectNative", [], body, undefined, options),
|
|
190
204
|
/** Create an agent home (POST /agents). */
|
|
@@ -207,14 +221,26 @@ export function resources(call) {
|
|
|
207
221
|
getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
|
|
208
222
|
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
209
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),
|
|
210
226
|
/** List agents (GET /agents). */
|
|
211
227
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
212
228
|
/** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
|
|
213
229
|
listLearningAudits: (agentId, options) => call("listLearningAudits", [agentId], undefined, undefined, options),
|
|
214
230
|
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
215
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),
|
|
216
240
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
217
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),
|
|
218
244
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
219
245
|
unarchive: (agentId, options) => call("unarchiveAgent", [agentId], undefined, undefined, options),
|
|
220
246
|
/** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
|
|
@@ -247,6 +273,8 @@ export function resources(call) {
|
|
|
247
273
|
completeRemoteCommand: (connectorId, commandId, body, options) => call("completeRemoteCommand", [connectorId, commandId], body, undefined, options),
|
|
248
274
|
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
249
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),
|
|
250
278
|
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
251
279
|
importRemoteHistory: (connectorId, targetId, body, options) => call("importRemoteHistory", [connectorId, targetId], body, undefined, options),
|
|
252
280
|
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
@@ -255,12 +283,16 @@ export function resources(call) {
|
|
|
255
283
|
listRemoteConnectors: (options) => call("listRemoteConnectors", [], undefined, undefined, options),
|
|
256
284
|
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
257
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),
|
|
258
288
|
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
259
289
|
registerRemoteConnector: (body, options) => call("registerRemoteConnector", [], body, undefined, options),
|
|
260
290
|
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
261
291
|
remoteCommandEvents: (connectorId, commandId, body, options) => call("remoteCommandEvents", [connectorId, commandId], body, undefined, options),
|
|
262
292
|
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
263
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),
|
|
264
296
|
},
|
|
265
297
|
files: {
|
|
266
298
|
/** Reserve an upload (POST /files). */
|
|
@@ -349,6 +381,8 @@ export function resources(call) {
|
|
|
349
381
|
listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
|
|
350
382
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
351
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),
|
|
352
386
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
353
387
|
putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
|
|
354
388
|
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
@@ -515,7 +549,9 @@ export function resources(call) {
|
|
|
515
549
|
apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
|
|
516
550
|
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
517
551
|
delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
|
|
518
|
-
/**
|
|
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). */
|
|
519
555
|
import: (body, options) => call("importTemplate", [], body, undefined, options),
|
|
520
556
|
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
521
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.
|
|
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.
|
|
86
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.53"
|
|
87
87
|
}
|
|
88
88
|
}
|