@parcha/agentrun-client 0.1.0-beta.64 → 0.1.0-beta.65

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.
@@ -213,10 +213,12 @@ export type DefinitionInput = {
213
213
  web_fetch?: {
214
214
  provider?: "auto" | "firecrawl-keyless" | "kernel" | "parallel";
215
215
  permission?: "allow" | "ask" | "deny";
216
+ jev?: "off";
216
217
  };
217
218
  web_search?: {
218
219
  provider?: "auto" | "native" | "firecrawl-keyless" | "exa-keyless" | "parallel" | "off";
219
220
  permission?: "allow" | "ask" | "deny";
221
+ jev?: "off";
220
222
  };
221
223
  web_save?: {
222
224
  permission?: "allow" | "ask" | "deny";
@@ -1352,6 +1354,12 @@ export type Features = {
1352
1354
  signing: "standard-webhooks/v1";
1353
1355
  at_rest: "sealed";
1354
1356
  };
1357
+ workspaces?: {
1358
+ header: "AgentRun-Workspace";
1359
+ enforced: boolean;
1360
+ required_for_tokens: boolean;
1361
+ routes: Array<string>;
1362
+ };
1355
1363
  api_keys?: {
1356
1364
  routes: boolean;
1357
1365
  limit: number;
@@ -3434,6 +3442,24 @@ export type GetModelGatewayResponse = {
3434
3442
  };
3435
3443
  problem: string | null;
3436
3444
  };
3445
+ /** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
3446
+ export type GetPricesResponse = {
3447
+ compute: Array<{
3448
+ provider: string;
3449
+ resource: "vcpu" | "memory" | "gpu" | "disk";
3450
+ gpu_type: string | null;
3451
+ unit: "vcpu_second" | "gib_second" | "gpu_second" | "gb_month";
3452
+ usd: string | null;
3453
+ source: "setting" | "list" | "unpriced";
3454
+ }>;
3455
+ browser: Array<{
3456
+ provider: string;
3457
+ unit: "hour";
3458
+ usd: string | null;
3459
+ minimum_s: number;
3460
+ source: "setting" | "list" | "unpriced";
3461
+ }>;
3462
+ };
3437
3463
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
3438
3464
  export interface GetSuggestionParams {
3439
3465
  name?: string;
@@ -5279,7 +5305,7 @@ export type GetRunUsageResponse = {
5279
5305
  billable: boolean;
5280
5306
  }> | null;
5281
5307
  infra_usd: number | null;
5282
- reason: "running" | "not_booked" | "reopened" | null;
5308
+ reason: "running" | "not_booked" | null;
5283
5309
  };
5284
5310
  /** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
5285
5311
  export type CompleteSdkRunBody = {
@@ -7661,6 +7687,8 @@ export declare function resources(call: Call): {
7661
7687
  getLocalModel: (options?: RequestOptions) => Promise<GetLocalModelResponse>;
7662
7688
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
7663
7689
  getModelGateway: (options?: RequestOptions) => Promise<GetModelGatewayResponse>;
7690
+ /** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
7691
+ getPrices: (options?: RequestOptions) => Promise<GetPricesResponse>;
7664
7692
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
7665
7693
  getSuggestion: (suggestionId: string, params?: GetSuggestionParams, options?: RequestOptions) => Promise<GetSuggestionResponse>;
7666
7694
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
@@ -88,6 +88,7 @@ export const OPERATIONS = {
88
88
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
89
  getLocalModel: { "method": "GET", "path": "/settings/local-model", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
90
  getModelGateway: { "method": "GET", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
+ getPrices: { "method": "GET", "path": "/settings/prices", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
92
  getSuggestion: { "method": "GET", "path": "/suggestions/{suggestion_id}", "pathParams": ["suggestion_id"], "multiSegment": [], "query": ["name"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
92
93
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
93
94
  gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -410,6 +411,8 @@ export function resources(call) {
410
411
  getLocalModel: (options) => call("getLocalModel", [], undefined, undefined, options),
411
412
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
412
413
  getModelGateway: (options) => call("getModelGateway", [], undefined, undefined, options),
414
+ /** The prices this server meters computer time and browser time at, with where each comes from (GET /settings/prices). */
415
+ getPrices: (options) => call("getPrices", [], undefined, undefined, options),
413
416
  /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
414
417
  getSuggestion: (suggestionId, params, options) => call("getSuggestion", [suggestionId], undefined, params, options),
415
418
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.64",
3
+ "version": "0.1.0-beta.65",
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.64"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.65"
87
87
  }
88
88
  }