@parcha/agentrun-client 0.1.0-beta.56 → 0.1.0-beta.57

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.
package/README.md CHANGED
@@ -47,7 +47,11 @@ import { AgentRun } from "@parcha/agentrun-client";
47
47
  const client = new AgentRun({ baseUrl: "https://agentrun.example.com/v2", apiKey: process.env.AGENTRUN_API_KEY });
48
48
  ```
49
49
 
50
- `baseUrl` defaults to `AGENTRUN_BASE_URL` and `apiKey` to `AGENTRUN_API_KEY`. The base URL must be http or https with no
50
+ `baseUrl` defaults to `AGENTRUN_BASE_URL` and `apiKey` to `AGENTRUN_API_KEY`, else `AGENTRUN_TOKEN`. `AGENTRUN_TOKEN` is the
51
+ name the local server gives its token, so the client sends it only to a server on this machine (`localhost`, `127.0.0.1` or
52
+ `[::1]`, as the CLI); any other address takes `AGENTRUN_API_KEY` or `apiKey`, and with neither is refused. The base URL is the
53
+ server's address with or without `/v2`: as the CLI takes it, `/v2` is added when its path holds no `v2` segment, a path
54
+ prefix kept. It must be http or https with no
51
55
  query, fragment, user or password, and the key must be a valid header value; both are checked here, before any request. The
52
56
  client reads no file: finding the server started on this machine (its data directory and the address it records there) is
53
57
  the CLI's job (`npx @parcha/agentrun`), not this package's. Other options: `timeoutMs` for one try of a request (default
package/dist/client.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { type FollowOptions, type WaitOptions } from "./live.js";
2
2
  import { type Resources, type Run, type TimelinePage } from "./operations.generated.js";
3
3
  export interface ClientOptions {
4
- /** The server's API, ending /v2 (default: AGENTRUN_BASE_URL): http or https, with no query, fragment, user or password. */
4
+ /** The server's address (default: AGENTRUN_BASE_URL), with /v2 added when its path holds no v2 segment, as the CLI takes
5
+ * it: http or https, with no query, fragment, user or password. */
5
6
  baseUrl?: string;
6
- /** The API key (default: AGENTRUN_API_KEY). */
7
+ /** The API key (default: AGENTRUN_API_KEY, else AGENTRUN_TOKEN for a server on this machine). */
7
8
  apiKey?: string;
8
9
  /** How long one try of a request may take, in milliseconds (default 60000). */
9
10
  timeoutMs?: number;
package/dist/client.js CHANGED
@@ -33,16 +33,24 @@ const retryAfterOf = (response) => {
33
33
  return Number.isFinite(ms) ? Math.max(0, ms) : 0;
34
34
  };
35
35
  const env = (name) => globalThis.process?.env?.[name];
36
- /** A base URL as the client takes it; `where` names it in the refusal. The URL itself is never echoed: it may hold a password. */
36
+ /** A base URL as the client takes it; `where` names it in the refusal. The URL itself is never echoed: it may hold a password.
37
+ * As the CLI takes one: the trailing slashes cut, and /v2 added when the path holds no v2 segment, so
38
+ * `https://host/prefix` is `https://host/prefix/v2` and `https://host/v2/` is `https://host/v2`. */
37
39
  function baseOf(given, where) {
38
40
  if (given === undefined || given === "")
39
- throw new AgentRunUsage("No server: pass baseUrl, or set AGENTRUN_BASE_URL, to the API's base (ending /v2).");
41
+ throw new AgentRunUsage("No server: pass baseUrl, or set AGENTRUN_BASE_URL, to the server's address (/v2 is added when its path holds none).");
40
42
  const url = URL.canParse(given) ? new URL(given) : undefined;
41
43
  if (!url || !/^https?:$/.test(url.protocol) || /[?#]/.test(given) || url.username || url.password) {
42
- throw new AgentRunUsage(`${where} must be an http or https URL with no query, fragment, user or password: the API's base, ending /v2.`);
44
+ throw new AgentRunUsage(`${where} must be an http or https URL with no query, fragment, user or password: the server's address, with or without /v2.`);
43
45
  }
44
- return given.replace(/\/+$/, "");
46
+ const base = given.replace(/\/+$/, "");
47
+ return new URL(base).pathname.split("/").includes("v2") ? base : `${base}/v2`;
45
48
  }
49
+ /** The hosts AgentRun's CLI takes as this machine (packages/agentrun/lib/device.mjs LOOPBACK, which this package cannot
50
+ * import; python/agentrun/_client.py holds the same three). AGENTRUN_TOKEN, the name a local server gives its token, goes
51
+ * to no other host; a remote server takes AGENTRUN_API_KEY. */
52
+ const LOOPBACK = new Set(["localhost", "127.0.0.1", "[::1]"]); // key-gate: loopback-rule the hosts AGENTRUN_TOKEN may go to
53
+ const loopback = (base) => LOOPBACK.has(new URL(base).hostname);
46
54
  const positive = (value, name, whole = false) => {
47
55
  if (value !== undefined && (!Number.isFinite(value) || value < (whole ? 0 : 1) || (whole && !Number.isInteger(value))))
48
56
  throw new AgentRunUsage(`${name} must be ${whole ? "a whole number, 0 or more" : "a number of milliseconds, 1 or more"}.`);
@@ -59,9 +67,15 @@ export class AgentRun {
59
67
  #reached = false;
60
68
  constructor(options = {}) {
61
69
  this.baseUrl = baseOf(options.baseUrl ?? env("AGENTRUN_BASE_URL"), options.baseUrl !== undefined ? "baseUrl" : "AGENTRUN_BASE_URL");
62
- const key = options.apiKey ?? env("AGENTRUN_API_KEY");
63
- if (!key)
64
- throw new AgentRunAuthError("no_token", "No API key: pass apiKey, or set AGENTRUN_API_KEY.");
70
+ // AGENTRUN_TOKEN, the name the server and its setup page give the token, stands in when AGENTRUN_API_KEY is not set,
71
+ // for a server on this machine alone: a local server's token is never sent to a remote address.
72
+ const token = loopback(this.baseUrl) ? env("AGENTRUN_TOKEN") : undefined;
73
+ const key = options.apiKey ?? (env("AGENTRUN_API_KEY") || token);
74
+ if (!key) {
75
+ throw new AgentRunAuthError("no_token", !loopback(this.baseUrl) && env("AGENTRUN_TOKEN")
76
+ ? `No API key for ${new URL(this.baseUrl).origin}: AGENTRUN_TOKEN goes only to a server on this machine; pass apiKey, or set AGENTRUN_API_KEY.`
77
+ : "No API key: pass apiKey, or set AGENTRUN_API_KEY (or AGENTRUN_TOKEN for a server on this machine).");
78
+ }
65
79
  // Refused before it is sent: fetch would quote a bad header value in its error.
66
80
  if (BAD_HEADER.test(key) || /\s/.test(key))
67
81
  throw new AgentRunAuthError("bad_header", "The API key is not a valid header value (it holds a space, a line break, a control character or a character outside Latin-1).");
package/dist/errors.d.ts CHANGED
@@ -3,8 +3,10 @@ import type { Run } from "./operations.generated.js";
3
3
  export type ServerError = Record<string, unknown>;
4
4
  /** The most of the server's reason a message carries. */
5
5
  export declare const REASON_CHARS = 300;
6
- /** The server's reason as a message's end: `: <its message>`, on one line, at most REASON_CHARS characters (code points);
7
- * empty when the error object holds no message. `error` is the one the client keeps, the key already cut from it. */
6
+ /** The server's reason as a message's end: `: <its message>`, on one line (whitespace runs one space, every control,
7
+ * zero-width, bidi and BOM character dropped, the ends trimmed), at most REASON_CHARS characters (code points), the last
8
+ * a … when cut; empty when the error object holds no message, or none that survives. `error` is the one the client
9
+ * keeps, the key already cut from it. The same cases test both clients (packages/client/test/reason-cases.json). */
8
10
  export declare function said(error: ServerError | undefined): string;
9
11
  /** What every error of this client is: `kind` says which outcome it is. */
10
12
  export declare abstract class AgentRunError extends Error {
package/dist/errors.js CHANGED
@@ -1,12 +1,22 @@
1
1
  /** The most of the server's reason a message carries. */
2
2
  export const REASON_CHARS = 300;
3
- /** The server's reason as a message's end: `: <its message>`, on one line, at most REASON_CHARS characters (code points);
4
- * empty when the error object holds no message. `error` is the one the client keeps, the key already cut from it. */
3
+ /** The characters a reason keeps as one space: every whitespace run is one. Spelled out, not \s, so the Python client's
4
+ * rule (python/agentrun/_errors.py) is the same character for character. */
5
+ const SPACES = /[\t\n\v\f\r \u{85}\u{A0}\u{1680}\u{2000}-\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}]+/gu;
6
+ /** The characters a reason drops: every other control character (C0, DEL, C1), the zero-width ones, the bidi controls and
7
+ * the BOM, none of which a terminal or a log shows as what it is. */
8
+ const DROPPED = /[\u{0}-\u{8}\u{E}-\u{1F}\u{7F}-\u{84}\u{86}-\u{9F}\u{200B}-\u{200F}\u{202A}-\u{202E}\u{2060}-\u{2064}\u{2066}-\u{2069}\u{FEFF}]/gu;
9
+ /** The server's reason as a message's end: `: <its message>`, on one line (whitespace runs one space, every control,
10
+ * zero-width, bidi and BOM character dropped, the ends trimmed), at most REASON_CHARS characters (code points), the last
11
+ * a … when cut; empty when the error object holds no message, or none that survives. `error` is the one the client
12
+ * keeps, the key already cut from it. The same cases test both clients (packages/client/test/reason-cases.json). */
5
13
  export function said(error) {
6
14
  const message = error?.message;
7
- if (typeof message !== "string" || !message.trim())
15
+ if (typeof message !== "string")
16
+ return "";
17
+ const line = [...message.replace(DROPPED, "").replace(SPACES, " ").trim()];
18
+ if (!line.length)
8
19
  return "";
9
- const line = [...message.trim().split(/\s+/).join(" ")];
10
20
  return `: ${line.length <= REASON_CHARS ? line.join("") : `${line.slice(0, REASON_CHARS - 1).join("")}…`}`;
11
21
  }
12
22
  /** What every error of this client is: `kind` says which outcome it is. */
@@ -705,7 +705,7 @@ export type Run = {
705
705
  computer?: {
706
706
  kind: "sandbox" | "desktop" | "phone" | "browser";
707
707
  provider: string;
708
- state: "starting" | "ready" | "taken_over" | "ended" | "failed";
708
+ state: "starting" | "ready" | "taken_over" | "released" | "ended" | "failed";
709
709
  why?: string;
710
710
  held?: {
711
711
  state: "starting" | "waiting" | "started" | "ended" | "released";
@@ -847,6 +847,7 @@ export type RunFile = {
847
847
  modified_at: Timestamp;
848
848
  content_type?: string | null;
849
849
  unreadable?: true;
850
+ name?: string;
850
851
  };
851
852
  export type MessageCreate = {
852
853
  content: string;
@@ -908,6 +909,14 @@ export type TimelinePage = {
908
909
  final: boolean;
909
910
  cost: Cost;
910
911
  poll_after_ms?: number;
912
+ in_flight?: Array<{
913
+ kind: "model" | "tool";
914
+ name: string;
915
+ started_at: string | null;
916
+ tool_use_id?: string;
917
+ for_tool?: string;
918
+ input_tokens_max?: number;
919
+ }>;
911
920
  };
912
921
  export type TimelineRow = {
913
922
  id: string;
@@ -1055,6 +1064,7 @@ export type Capabilities = {
1055
1064
  billing: "proxy" | "plan";
1056
1065
  };
1057
1066
  available: boolean;
1067
+ ready_models: Array<string>;
1058
1068
  free_models: Array<{
1059
1069
  id: string;
1060
1070
  context_window: number;
@@ -1214,12 +1224,14 @@ export type Features = {
1214
1224
  routes: boolean;
1215
1225
  at_rest: "sealed";
1216
1226
  harnesses: Array<string>;
1227
+ kept: Array<string>;
1217
1228
  };
1218
1229
  mcp_client?: {
1219
1230
  transports: Array<"streamable-http">;
1220
1231
  auth: Array<"none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run">;
1221
1232
  at_rest: "sealed";
1222
1233
  harnesses: Array<string>;
1234
+ composio_per_run: boolean;
1223
1235
  };
1224
1236
  tool_permissions?: boolean;
1225
1237
  webhooks?: {
@@ -1228,6 +1240,11 @@ export type Features = {
1228
1240
  signing: "standard-webhooks/v1";
1229
1241
  at_rest: "sealed";
1230
1242
  };
1243
+ api_keys?: {
1244
+ routes: boolean;
1245
+ limit: number;
1246
+ at_rest: "hashed";
1247
+ };
1231
1248
  slack?: {
1232
1249
  routes: boolean;
1233
1250
  events: Array<"run.needs_input" | "run.ended" | "trigger.failed">;
@@ -1884,12 +1901,12 @@ export type GetAgentPackageResponse = {
1884
1901
  sha256: string;
1885
1902
  report: {
1886
1903
  blocked: Array<{
1887
- kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "input_schema" | "budget" | "package";
1904
+ kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "secrets" | "input_schema" | "budget" | "package";
1888
1905
  name: string;
1889
1906
  reason: string;
1890
1907
  }>;
1891
1908
  remade: Array<{
1892
- kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "input_schema" | "budget" | "package";
1909
+ kind: "mcp_server" | "trigger" | "pin" | "tool_setting" | "tool_policy" | "computer" | "paired_computer" | "sign_in" | "learning" | "secrets" | "input_schema" | "budget" | "package";
1893
1910
  name: string;
1894
1911
  reason: string;
1895
1912
  }>;
@@ -2093,6 +2110,19 @@ export type VerifyNativeResponse = {
2093
2110
  };
2094
2111
  };
2095
2112
  };
2113
+ /** The API keys made for this server's apps; never a key (GET /settings/api-keys). */
2114
+ export type ListApiKeysResponse = {
2115
+ keys: Array<{
2116
+ id: string;
2117
+ name: string;
2118
+ created_at: string;
2119
+ last_used_at: string | null;
2120
+ secret: SecretMeta;
2121
+ }>;
2122
+ limit: number;
2123
+ refused?: string;
2124
+ unreadable?: Array<string>;
2125
+ };
2096
2126
  /** The runs waiting and held, the live runners and the recent hand-backs (GET /capacity). */
2097
2127
  export interface GetCapacityParams {
2098
2128
  window?: number;
@@ -2526,8 +2556,14 @@ export type ListHarnessKeysResponse = {
2526
2556
  harnesses: Array<{
2527
2557
  id: string;
2528
2558
  label: string;
2559
+ named: boolean;
2529
2560
  keys: Array<SecretMeta>;
2561
+ kept: Array<SecretMeta>;
2530
2562
  ready: boolean;
2563
+ reenter: Array<{
2564
+ name: string;
2565
+ why: "recipe_changed" | "seal_key_changed" | "file_unreadable";
2566
+ }>;
2531
2567
  }>;
2532
2568
  };
2533
2569
  /** Delete one file of the agent's home (DELETE /agents/{agent_id}/home/files/{path}). */
@@ -2621,6 +2657,7 @@ export type GetLearningCostResponse = {
2621
2657
  hand_backs: {
2622
2658
  ran: number;
2623
2659
  back: number;
2660
+ cut: number;
2624
2661
  } | null;
2625
2662
  withheld: {
2626
2663
  unknown: number;
@@ -2835,6 +2872,18 @@ export type ConnectGitHubResponse = {
2835
2872
  manifest: Record<string, unknown>;
2836
2873
  state: string;
2837
2874
  };
2875
+ /** Make an API key, shown once (POST /settings/api-keys). */
2876
+ export type CreateApiKeyBody = {
2877
+ name: string;
2878
+ };
2879
+ export type CreateApiKeyResponse = {
2880
+ id: string;
2881
+ name: string;
2882
+ created_at: string;
2883
+ last_used_at: string | null;
2884
+ secret: SecretMeta;
2885
+ api_key: string;
2886
+ };
2838
2887
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
2839
2888
  export type CreatePairingResponse = {
2840
2889
  id: string;
@@ -3029,6 +3078,7 @@ export type FinishChatGPTSignInResponse = {
3029
3078
  expires_at?: string;
3030
3079
  models?: Array<string>;
3031
3080
  problem?: string;
3081
+ hint?: string;
3032
3082
  };
3033
3083
  /** This server's calendar: its host, name and time zone, never its address (GET /settings/calendar). */
3034
3084
  export type GetCalendarResponse = {
@@ -3046,6 +3096,7 @@ export type GetChatGPTSignInResponse = {
3046
3096
  expires_at?: string;
3047
3097
  models?: Array<string>;
3048
3098
  problem?: string;
3099
+ hint?: string;
3049
3100
  };
3050
3101
  /** Claude Code's login on this machine: on or off, and what its CLI says of it (GET /settings/claude-login). */
3051
3102
  export type GetClaudeLoginResponse = {
@@ -3064,6 +3115,7 @@ export type GetClaudeLoginResponse = {
3064
3115
  machine: {
3065
3116
  folder: string;
3066
3117
  source: "CLAUDE_CONFIG_DIR" | "default";
3118
+ credentials?: string;
3067
3119
  };
3068
3120
  sign_in?: {
3069
3121
  state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
@@ -3240,6 +3292,16 @@ export type ListComposioEventsResponse = {
3240
3292
  instructions?: string;
3241
3293
  }>;
3242
3294
  };
3295
+ /** List the toolkits Composio offers, for the console's toolkit picker; stores nothing (POST /settings/mcp-servers/composio/toolkits). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
3296
+ export type ListComposioToolkitsBody = {
3297
+ api_key: string;
3298
+ };
3299
+ export type ListComposioToolkitsResponse = {
3300
+ toolkits: Array<{
3301
+ slug: string;
3302
+ name: string;
3303
+ }>;
3304
+ };
3243
3305
  /** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
3244
3306
  export type ListComposioToolsBody = {
3245
3307
  api_key: string;
@@ -3392,6 +3454,26 @@ export type ListGitHubRepositoriesResponse = {
3392
3454
  why: string;
3393
3455
  }>;
3394
3456
  };
3457
+ /** The marketplace's templates: every package on marketplace.agentrun.ai, each with the package here that it is (GET /marketplace/templates). */
3458
+ export type ListMarketplaceTemplatesResponse = {
3459
+ url: string | null;
3460
+ state: "read" | "stale" | "unreachable" | "off";
3461
+ read_at: string | null;
3462
+ templates: Array<{
3463
+ name: string;
3464
+ title: string;
3465
+ tags: Array<string>;
3466
+ needs: Array<string>;
3467
+ page_url: string;
3468
+ summary?: string;
3469
+ description?: string;
3470
+ category?: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal";
3471
+ harness?: Array<string>;
3472
+ source?: string;
3473
+ here?: string;
3474
+ }>;
3475
+ problem?: string;
3476
+ };
3395
3477
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
3396
3478
  export type ListMcpServerNamesResponse = {
3397
3479
  names: Array<string>;
@@ -3627,6 +3709,7 @@ export type RestoreSuggestionResponse = {
3627
3709
  pull_error: string | null;
3628
3710
  };
3629
3711
  };
3712
+ /** Revoke an API key; it opens nothing from now on (DELETE /settings/api-keys/{api_key_id}). */
3630
3713
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
3631
3714
  export type RotateComposioSecretResponse = {
3632
3715
  rotated: true;
@@ -3695,6 +3778,11 @@ export type SaveComposioServerResponse = {
3695
3778
  listed_at: string;
3696
3779
  updated_at: string;
3697
3780
  secret?: SecretMeta;
3781
+ composio_account?: {
3782
+ state: "connected" | "pending" | "expired" | "none" | "unknown";
3783
+ labels?: Array<string>;
3784
+ checked_at: string;
3785
+ };
3698
3786
  };
3699
3787
  connect_url?: string;
3700
3788
  not_served?: Array<string>;
@@ -3847,6 +3935,7 @@ export type StartClaudeLoginResponse = {
3847
3935
  machine: {
3848
3936
  folder: string;
3849
3937
  source: "CLAUDE_CONFIG_DIR" | "default";
3938
+ credentials?: string;
3850
3939
  };
3851
3940
  sign_in?: {
3852
3941
  state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
@@ -3948,6 +4037,7 @@ export type TurnOffClaudeLoginResponse = {
3948
4037
  machine: {
3949
4038
  folder: string;
3950
4039
  source: "CLAUDE_CONFIG_DIR" | "default";
4040
+ credentials?: string;
3951
4041
  };
3952
4042
  sign_in?: {
3953
4043
  state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
@@ -3980,6 +4070,7 @@ export type TurnOnClaudeLoginResponse = {
3980
4070
  machine: {
3981
4071
  folder: string;
3982
4072
  source: "CLAUDE_CONFIG_DIR" | "default";
4073
+ credentials?: string;
3983
4074
  };
3984
4075
  sign_in?: {
3985
4076
  state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
@@ -4043,6 +4134,11 @@ export type GetMcpServerResponse = {
4043
4134
  listed_at: string;
4044
4135
  updated_at: string;
4045
4136
  secret?: SecretMeta;
4137
+ composio_account?: {
4138
+ state: "connected" | "pending" | "expired" | "none" | "unknown";
4139
+ labels?: Array<string>;
4140
+ checked_at: string;
4141
+ };
4046
4142
  };
4047
4143
  /** The remote MCP servers saved here, with their tools; never a credential (GET /settings/mcp-servers). */
4048
4144
  export type ListMcpServersResponse = {
@@ -4089,6 +4185,11 @@ export type ListMcpServersResponse = {
4089
4185
  listed_at: string;
4090
4186
  updated_at: string;
4091
4187
  secret?: SecretMeta;
4188
+ composio_account?: {
4189
+ state: "connected" | "pending" | "expired" | "none" | "unknown";
4190
+ labels?: Array<string>;
4191
+ checked_at: string;
4192
+ };
4092
4193
  }>;
4093
4194
  };
4094
4195
  /** This server's OAuth client metadata document (GET /settings/mcp-servers/oauth/client.json). */
@@ -4180,6 +4281,11 @@ export type RefreshMcpServerResponse = {
4180
4281
  listed_at: string;
4181
4282
  updated_at: string;
4182
4283
  secret?: SecretMeta;
4284
+ composio_account?: {
4285
+ state: "connected" | "pending" | "expired" | "none" | "unknown";
4286
+ labels?: Array<string>;
4287
+ checked_at: string;
4288
+ };
4183
4289
  };
4184
4290
  };
4185
4291
  /** Preview a remote MCP server, then save it with the tools listed and its credential sealed (PUT /settings/mcp-servers/{name}). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
@@ -4236,6 +4342,11 @@ export type SaveMcpServerResponse = {
4236
4342
  listed_at: string;
4237
4343
  updated_at: string;
4238
4344
  secret?: SecretMeta;
4345
+ composio_account?: {
4346
+ state: "connected" | "pending" | "expired" | "none" | "unknown";
4347
+ labels?: Array<string>;
4348
+ checked_at: string;
4349
+ };
4239
4350
  composio?: {
4240
4351
  removed: boolean;
4241
4352
  note: string;
@@ -4402,6 +4513,9 @@ export type CreateRunComputerViewerResponse = {
4402
4513
  };
4403
4514
  /** Purge a run's content and keep its cost (DELETE /runs/{run_id}). */
4404
4515
  /** The files the run wrote (GET /runs/{run_id}/files). */
4516
+ export interface ListRunFilesParams {
4517
+ cut?: "run";
4518
+ }
4405
4519
  export type ListRunFilesResponse = RunFileList;
4406
4520
  /** One run (GET /runs/{run_id}). */
4407
4521
  export type GetRunResponse = Run;
@@ -6370,6 +6484,28 @@ export type ListTriggersResponse = {
6370
6484
  note?: string;
6371
6485
  }>;
6372
6486
  };
6487
+ /** The launch hook's host releases a firing it took and will start no run for (POST /triggers/{trigger_id}/firings/{firing_id}/release). */
6488
+ export type ReleaseTriggerFiringBody = {
6489
+ error: string;
6490
+ };
6491
+ export type ReleaseTriggerFiringResponse = {
6492
+ key: string;
6493
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
6494
+ nominal_at: string;
6495
+ status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
6496
+ at: string;
6497
+ run_id: string | null;
6498
+ reason: string | null;
6499
+ error: {
6500
+ code: string;
6501
+ message: string;
6502
+ } | null;
6503
+ count?: number;
6504
+ attempts?: number;
6505
+ retry_at?: string;
6506
+ start_by?: string;
6507
+ catch_up?: true;
6508
+ };
6373
6509
  /** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
6374
6510
  export type RotateTriggerSecretResponse = {
6375
6511
  secret: SecretMeta;
@@ -6916,6 +7052,10 @@ export declare function resources(call: Call): {
6916
7052
  /** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
6917
7053
  verifyNative: (agentId: string, options?: RequestOptions) => Promise<VerifyNativeResponse>;
6918
7054
  };
7055
+ apiKeys: {
7056
+ /** The API keys made for this server's apps; never a key (GET /settings/api-keys). */
7057
+ list: (options?: RequestOptions) => Promise<ListApiKeysResponse>;
7058
+ };
6919
7059
  capabilities: {
6920
7060
  /** The runs waiting and held, the live runners and the recent hand-backs (GET /capacity). */
6921
7061
  getCapacity: (params?: GetCapacityParams, options?: RequestOptions) => Promise<GetCapacityResponse>;
@@ -7011,6 +7151,8 @@ export declare function resources(call: Call): {
7011
7151
  writeCorrections: (agentId: string, body: PutLearningCorrectionsBody | RawBody, params: PutLearningCorrectionsParams, options?: BodyOptions) => Promise<Tagged<PutLearningCorrectionsResponse>>;
7012
7152
  };
7013
7153
  local: {
7154
+ /** Make an API key, shown once (POST /settings/api-keys). */
7155
+ createApiKey: (body: CreateApiKeyBody, options?: RequestOptions) => Promise<CreateApiKeyResponse>;
7014
7156
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
7015
7157
  createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
7016
7158
  /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
@@ -7053,6 +7195,8 @@ export declare function resources(call: Call): {
7053
7195
  getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
7054
7196
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
7055
7197
  listComposioEvents: (name: string, options?: RequestOptions) => Promise<ListComposioEventsResponse>;
7198
+ /** List the toolkits Composio offers, for the console's toolkit picker; stores nothing (POST /settings/mcp-servers/composio/toolkits). */
7199
+ listComposioToolkits: (body: ListComposioToolkitsBody, options?: RequestOptions) => Promise<ListComposioToolkitsResponse>;
7056
7200
  /** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
7057
7201
  listComposioTools: (body: ListComposioToolsBody, options?: RequestOptions) => Promise<ListComposioToolsResponse>;
7058
7202
  /** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
@@ -7063,6 +7207,8 @@ export declare function resources(call: Call): {
7063
7207
  listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
7064
7208
  /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
7065
7209
  listGitHubRepositories: (options?: RequestOptions) => Promise<ListGitHubRepositoriesResponse>;
7210
+ /** The marketplace's templates: every package on marketplace.agentrun.ai, each with the package here that it is (GET /marketplace/templates). */
7211
+ listMarketplaceTemplates: (options?: RequestOptions) => Promise<ListMarketplaceTemplatesResponse>;
7066
7212
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
7067
7213
  listMcpServerNames: (options?: RequestOptions) => Promise<ListMcpServerNamesResponse>;
7068
7214
  /** Every run still going that has a computer (GET /computers/running). */
@@ -7075,6 +7221,8 @@ export declare function resources(call: Call): {
7075
7221
  receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
7076
7222
  /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
7077
7223
  restoreSuggestion: (suggestionId: string, options?: RequestOptions) => Promise<RestoreSuggestionResponse>;
7224
+ /** Revoke an API key; it opens nothing from now on (DELETE /settings/api-keys/{api_key_id}). */
7225
+ revokeApiKey: (apiKeyId: string, options?: RequestOptions) => Promise<void>;
7078
7226
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
7079
7227
  rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
7080
7228
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -7156,7 +7304,7 @@ export declare function resources(call: Call): {
7156
7304
  /** Purge a run's content and keep its cost (DELETE /runs/{run_id}). */
7157
7305
  delete: (runId: string, options?: RequestOptions) => Promise<void>;
7158
7306
  /** The files the run wrote (GET /runs/{run_id}/files). */
7159
- files: (runId: string, options?: RequestOptions) => Promise<ListRunFilesResponse>;
7307
+ files: (runId: string, params?: ListRunFilesParams, options?: RequestOptions) => Promise<ListRunFilesResponse>;
7160
7308
  /** One run (GET /runs/{run_id}). */
7161
7309
  get: (runId: string, options?: RequestOptions) => Promise<GetRunResponse>;
7162
7310
  /** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
@@ -7277,6 +7425,8 @@ export declare function resources(call: Call): {
7277
7425
  get: (triggerId: string, options?: RequestOptions) => Promise<GetTriggerResponse>;
7278
7426
  /** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
7279
7427
  list: (options?: RequestOptions) => Promise<ListTriggersResponse>;
7428
+ /** The launch hook's host releases a firing it took and will start no run for (POST /triggers/{trigger_id}/firings/{firing_id}/release). */
7429
+ releaseFiring: (triggerId: string, firingId: string, body: ReleaseTriggerFiringBody, options?: RequestOptions) => Promise<ReleaseTriggerFiringResponse>;
7280
7430
  /** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
7281
7431
  rotateSecret: (triggerId: string, options?: RequestOptions) => Promise<RotateTriggerSecretResponse>;
7282
7432
  /** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
@@ -26,6 +26,7 @@ export const OPERATIONS = {
26
26
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
27
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 },
28
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
+ listApiKeys: { "method": "GET", "path": "/settings/api-keys", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
29
30
  getCapacity: { "method": "GET", "path": "/capacity", "pathParams": [], "multiSegment": [], "query": ["window"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
30
31
  completeCliLearningRun: { "method": "POST", "path": "/cli-learning/runs/{run_id}/complete", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
31
32
  enrollCliLearning: { "method": "POST", "path": "/cli-learning/connections", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -67,6 +68,7 @@ export const OPERATIONS = {
67
68
  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 },
68
69
  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 },
69
70
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
71
+ createApiKey: { "method": "POST", "path": "/settings/api-keys", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
70
72
  createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
71
73
  createSuggestedAgent: { "method": "POST", "path": "/suggestions/{suggestion_id}/create", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
72
74
  deleteCalendar: { "method": "DELETE", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -90,17 +92,20 @@ export const OPERATIONS = {
90
92
  gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
91
93
  gitHubInstalled: { "method": "GET", "path": "/integrations/github/installed", "pathParams": [], "multiSegment": [], "query": ["installation_id", "setup_action", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
92
94
  listComposioEvents: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/events", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
95
+ listComposioToolkits: { "method": "POST", "path": "/settings/mcp-servers/composio/toolkits", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": [], "tagged": false },
93
96
  listComposioTools: { "method": "POST", "path": "/settings/mcp-servers/composio/tools", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit"], "tagged": false },
94
97
  listComposioTriggers: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/triggers", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
95
98
  listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
96
99
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
97
100
  listGitHubRepositories: { "method": "GET", "path": "/integrations/github/repositories", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
101
+ listMarketplaceTemplates: { "method": "GET", "path": "/marketplace/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
98
102
  listMcpServerNames: { "method": "GET", "path": "/settings/mcp-server-names", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
99
103
  listRunningComputers: { "method": "GET", "path": "/computers/running", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
100
104
  listSuggestions: { "method": "GET", "path": "/suggestions", "pathParams": [], "multiSegment": [], "query": ["repo", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
101
105
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
102
106
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
103
107
  restoreSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/restore", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
108
+ revokeApiKey: { "method": "DELETE", "path": "/settings/api-keys/{api_key_id}", "pathParams": ["api_key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
104
109
  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 },
105
110
  saveCalendar: { "method": "PUT", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
111
  saveComposioServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}/composio", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit", "tools.[]", "user_id"], "tagged": false },
@@ -138,7 +143,7 @@ export const OPERATIONS = {
138
143
  createInlineRun: { "method": "POST", "path": "/runs", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
139
144
  createRunComputerViewer: { "method": "POST", "path": "/runs/{run_id}/computer/viewer", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
140
145
  deleteRun: { "method": "DELETE", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
141
- listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
146
+ listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": ["cut"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
142
147
  getRun: { "method": "GET", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
143
148
  gradeRun: { "method": "PUT", "path": "/runs/{run_id}/grade", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
144
149
  getRunGraph: { "method": "GET", "path": "/runs/{run_id}/graph", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -190,6 +195,7 @@ export const OPERATIONS = {
190
195
  listTriggerFirings: { "method": "GET", "path": "/triggers/{trigger_id}/firings", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
191
196
  getTrigger: { "method": "GET", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
192
197
  listTriggers: { "method": "GET", "path": "/triggers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
198
+ releaseTriggerFiring: { "method": "POST", "path": "/triggers/{trigger_id}/firings/{firing_id}/release", "pathParams": ["trigger_id", "firing_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
193
199
  rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": true, "publicFields": [], "tagged": false },
194
200
  updateTrigger: { "method": "PATCH", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
195
201
  getUsage: { "method": "GET", "path": "/usage", "pathParams": [], "multiSegment": [], "query": ["from", "to", "group_by"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -260,6 +266,10 @@ export function resources(call) {
260
266
  /** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
261
267
  verifyNative: (agentId, options) => call("verifyNative", [agentId], undefined, undefined, options),
262
268
  },
269
+ apiKeys: {
270
+ /** The API keys made for this server's apps; never a key (GET /settings/api-keys). */
271
+ list: (options) => call("listApiKeys", [], undefined, undefined, options),
272
+ },
263
273
  capabilities: {
264
274
  /** The runs waiting and held, the live runners and the recent hand-backs (GET /capacity). */
265
275
  getCapacity: (params, options) => call("getCapacity", [], undefined, params, options),
@@ -355,6 +365,8 @@ export function resources(call) {
355
365
  writeCorrections: (agentId, body, params, options) => call("putLearningCorrections", [agentId], body, params, options),
356
366
  },
357
367
  local: {
368
+ /** Make an API key, shown once (POST /settings/api-keys). */
369
+ createApiKey: (body, options) => call("createApiKey", [], body, undefined, options),
358
370
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
359
371
  createPairing: (options) => call("createPairing", [], undefined, undefined, options),
360
372
  /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
@@ -397,6 +409,8 @@ export function resources(call) {
397
409
  getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
398
410
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
399
411
  listComposioEvents: (name, options) => call("listComposioEvents", [name], undefined, undefined, options),
412
+ /** List the toolkits Composio offers, for the console's toolkit picker; stores nothing (POST /settings/mcp-servers/composio/toolkits). */
413
+ listComposioToolkits: (body, options) => call("listComposioToolkits", [], body, undefined, options),
400
414
  /** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
401
415
  listComposioTools: (body, options) => call("listComposioTools", [], body, undefined, options),
402
416
  /** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
@@ -407,6 +421,8 @@ export function resources(call) {
407
421
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
408
422
  /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
409
423
  listGitHubRepositories: (options) => call("listGitHubRepositories", [], undefined, undefined, options),
424
+ /** The marketplace's templates: every package on marketplace.agentrun.ai, each with the package here that it is (GET /marketplace/templates). */
425
+ listMarketplaceTemplates: (options) => call("listMarketplaceTemplates", [], undefined, undefined, options),
410
426
  /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
411
427
  listMcpServerNames: (options) => call("listMcpServerNames", [], undefined, undefined, options),
412
428
  /** Every run still going that has a computer (GET /computers/running). */
@@ -419,6 +435,8 @@ export function resources(call) {
419
435
  receiveHookComposio: (hook, body, options) => call("receiveHook_composio", [hook], body, undefined, options),
420
436
  /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
421
437
  restoreSuggestion: (suggestionId, options) => call("restoreSuggestion", [suggestionId], undefined, undefined, options),
438
+ /** Revoke an API key; it opens nothing from now on (DELETE /settings/api-keys/{api_key_id}). */
439
+ revokeApiKey: (apiKeyId, options) => call("revokeApiKey", [apiKeyId], undefined, undefined, options),
422
440
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
423
441
  rotateComposioSecret: (name, options) => call("rotateComposioSecret", [name], undefined, undefined, options),
424
442
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -500,7 +518,7 @@ export function resources(call) {
500
518
  /** Purge a run's content and keep its cost (DELETE /runs/{run_id}). */
501
519
  delete: (runId, options) => call("deleteRun", [runId], undefined, undefined, options),
502
520
  /** The files the run wrote (GET /runs/{run_id}/files). */
503
- files: (runId, options) => call("listRunFiles", [runId], undefined, undefined, options),
521
+ files: (runId, params, options) => call("listRunFiles", [runId], undefined, params, options),
504
522
  /** One run (GET /runs/{run_id}). */
505
523
  get: (runId, options) => call("getRun", [runId], undefined, undefined, options),
506
524
  /** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
@@ -621,6 +639,8 @@ export function resources(call) {
621
639
  get: (triggerId, options) => call("getTrigger", [triggerId], undefined, undefined, options),
622
640
  /** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
623
641
  list: (options) => call("listTriggers", [], undefined, undefined, options),
642
+ /** The launch hook's host releases a firing it took and will start no run for (POST /triggers/{trigger_id}/firings/{firing_id}/release). */
643
+ releaseFiring: (triggerId, firingId, body, options) => call("releaseTriggerFiring", [triggerId, firingId], body, undefined, options),
624
644
  /** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
625
645
  rotateSecret: (triggerId, options) => call("rotateTriggerSecret", [triggerId], undefined, undefined, options),
626
646
  /** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.56",
3
+ "version": "0.1.0-beta.57",
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.56"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.57"
87
87
  }
88
88
  }