@oneshot-agent/sdk 0.49.1 → 0.51.0

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
@@ -138,9 +138,9 @@ mainnet only.
138
138
  | `verifyEmail()` | Verify email deliverability |
139
139
  | `companySearch()` | Search companies by name, domain, industry, location, size, funding |
140
140
  | `enrichCompany()` | Enrich a company from domain, name, LinkedIn URL, or ticker |
141
- | `localSearch()` | Discover local businesses (restaurants, contractors, practices) by category × location |
142
- | `localResolve()` | Business name + address → website domain, phone, status, confidence |
143
- | `govSolicitations()` | Federal Sources Sought / Presolicitation notices by NAICS with the contracting officer's contact |
141
+ | `businessFind()` | Discover local businesses (restaurants, contractors, practices) by category × location |
142
+ | `businessResolve()` | Business name + address → website domain, phone, status, confidence |
143
+ | `recordSolicitationsFind()` | Federal Sources Sought / Presolicitation notices by NAICS with the contracting officer's contact |
144
144
  | `deepResearchPerson()` | Full dossier on a person |
145
145
  | `socialProfiles()` | Find all social accounts |
146
146
  | `articleSearch()` | Find articles about a person |
@@ -181,6 +181,8 @@ mainnet only.
181
181
  | `rocs()` | Return on compute stats |
182
182
  | `receiptsList()` | List payment receipts (`limit`/`offset` or `since`/`until` window) |
183
183
  | `tagReceiptValue()` | Tag a receipt with business value (by `receipt_id` or `request_id`) |
184
+ | **Any route** | |
185
+ | `route(method, path, { params, query, body, paid })` | Call a declared route by method and path, with `{name}` path parameters, a query and a JSON body (an object field is sent as it is). A free route is signed like the other free calls (read proof for `GET`, write proof otherwise; the bearer token in an access-token session). `paid: true` (POST) goes through the quote-to-pay flow of `tool()`. The generated MCP route tools use it |
184
186
 
185
187
  ## Configuration
186
188
 
@@ -763,7 +765,7 @@ The signal **cannot** cancel:
763
765
 
764
766
  - [Documentation](https://docs.oneshotagent.com)
765
767
  - [MCP Server](https://www.npmjs.com/package/@oneshot-agent/mcp-server) — Claude Desktop, Cursor, Claude Code (local), or the hosted endpoint at `https://win.oneshotagent.com/mcp` with an access token
766
- - [Python SDK (LangChain)](https://pypi.org/project/langchain-oneshot/) — 48 tools as LangChain BaseTool
768
+ - [Python SDK (LangChain)](https://pypi.org/project/langchain-oneshot/) — 48 tools plus the lookup tools as LangChain BaseTool
767
769
  - [Python SDK (Core)](https://pypi.org/project/oneshot-python/) — HTTP client with x402 payments
768
770
  - [Pricing](https://docs.oneshotagent.com/pricing)
769
771
  - [GitHub](https://github.com/oneshot-agent/sdk)
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export type { SwapQuote, SwapResult, UniswapAddresses } from './swap';
13
13
  export * from './errors';
14
14
  import { Approvals, ActionPolicies } from './approvals';
15
15
  export * from './types';
16
- import type { StatusUpdateFn, OneShotConfig, ToolOptions, EmailToolOptions, ResearchToolOptions, PeopleSearchOptions, EnrichProfileOptions, FindEmailOptions, VerifyEmailOptions, CompanySearchOptions, CompanySearchResult, EnrichCompanyOptions, EnrichCompanyResult, LocalSearchOptions, LocalSearchResult, LocalResolveOptions, LocalResolveResult, GovSolicitationsOptions, GovSolicitationsResult, DeepResearchPersonOptions, SocialProfilesOptions, ArticleSearchOptions, PersonNewsfeedOptions, PersonInterestsOptions, PersonInteractionsOptions, InboxListOptions, CommerceBuyOptions, CommerceSearchOptions, WebSearchOptions, WebSearchResult, WebReadOptions, WebReadResult, VoiceCallOptions, SmsOptions, SmsInboxOptions, PeopleSearchResult, ResearchResult, EmailResult, EnrichProfileResult, FindEmailResult, DeepResearchPersonResult, SocialProfilesResult, ArticleSearchResult, PersonNewsfeedResult, PersonInterestsResult, PersonInteractionsResult, VerifyEmailResult, InboxEmail, InboxListResult, CommerceBuyResult, CommerceSearchResult, VoiceCallResult, SmsSendResult, SmsInboxMessage, SmsInboxResult, NotificationsListOptions, NotificationsResult, VoiceNumber, ProvisionedVoiceNumber, InboundVoiceConfig, InboundVoiceConfigResult, InboundCall, InboundCallsOptions, BuildOptions, BuildResult, BrowserTaskOptions, BrowserProfile, BrowserProfileCreateOptions, BrowserProfileSetup, BrowserResult, UpdateBuildOptions, RefineBuildOptions, SpendBreakdown, RoCSResult, RoCSByGoalResult, ReceiptsListResult, UnifiedBalance, CreditsTopUpResult, ComputeOptions, ComputeGoalResult, ComputeGoalStatus, ComputeTask, ComputeOutput, ComputeOutputContent, ComputeBudgetStatus, DomainPoolListResult, DomainPoolStatusResult, AgentBudgetConfig, AgentBudgetStatus, AccessTokenCreated, AccessTokenInfo, LinkedInConnectOptions, LinkedInReconnectOptions, LinkedInConnectIntentIssued, LinkedInConnectIntent, LinkedInAccount, LinkedInRevokeResult, LinkedInSyncStatus, LinkedInSyncOptions, LinkedInSyncRunResult, LinkedInConversationsOptions, LinkedInConversationsPage, LinkedInMessagesOptions, LinkedInMessagesPage, LinkedInReplyOptions, LinkedInMessageOptions, LinkedInMessageResult, LinkedInInvitation, LinkedInInvitationOptions, LinkedInInvitationsOptions, LinkedInInviteOptions, LinkedInInviteResult, LinkedInWithdrawInvitationOptions, LinkedInWithdrawInvitationResult, LinkedInViewProfileOptions, LinkedInReactOptions, LinkedInWriteResult, LinkedInProfileViewResult } from './types';
16
+ import type { StatusUpdateFn, OneShotConfig, ToolOptions, RouteMethod, RouteOptions, EmailToolOptions, ResearchToolOptions, PeopleSearchOptions, EnrichProfileOptions, FindEmailOptions, VerifyEmailOptions, CompanySearchOptions, CompanySearchResult, EnrichCompanyOptions, EnrichCompanyResult, BusinessFindOptions, BusinessFindResult, BusinessResolveOptions, BusinessResolveResult, RecordSolicitationsFindOptions, RecordSolicitationsFindResult, DeepResearchPersonOptions, SocialProfilesOptions, ArticleSearchOptions, PersonNewsfeedOptions, PersonInterestsOptions, PersonInteractionsOptions, InboxListOptions, CommerceBuyOptions, CommerceSearchOptions, WebSearchOptions, WebSearchResult, WebReadOptions, WebReadResult, VoiceCallOptions, SmsOptions, SmsInboxOptions, PeopleSearchResult, ResearchResult, EmailResult, EnrichProfileResult, FindEmailResult, DeepResearchPersonResult, SocialProfilesResult, ArticleSearchResult, PersonNewsfeedResult, PersonInterestsResult, PersonInteractionsResult, VerifyEmailResult, InboxEmail, InboxListResult, CommerceBuyResult, CommerceSearchResult, VoiceCallResult, SmsSendResult, SmsInboxMessage, SmsInboxResult, NotificationsListOptions, NotificationsResult, VoiceNumber, ProvisionedVoiceNumber, InboundVoiceConfig, InboundVoiceConfigResult, InboundCall, InboundCallsOptions, BuildOptions, BuildResult, BrowserTaskOptions, BrowserProfile, BrowserProfileCreateOptions, BrowserProfileSetup, BrowserResult, UpdateBuildOptions, RefineBuildOptions, SpendBreakdown, RoCSResult, RoCSByGoalResult, ReceiptsListResult, UnifiedBalance, CreditsTopUpResult, ComputeOptions, ComputeGoalResult, ComputeGoalStatus, ComputeTask, ComputeOutput, ComputeOutputContent, ComputeBudgetStatus, DomainPoolListResult, DomainPoolStatusResult, AgentBudgetConfig, AgentBudgetStatus, AccessTokenCreated, AccessTokenInfo, LinkedInConnectOptions, LinkedInReconnectOptions, LinkedInConnectIntentIssued, LinkedInConnectIntent, LinkedInAccount, LinkedInRevokeResult, LinkedInSyncStatus, LinkedInSyncOptions, LinkedInSyncRunResult, LinkedInConversationsOptions, LinkedInConversationsPage, LinkedInMessagesOptions, LinkedInMessagesPage, LinkedInReplyOptions, LinkedInMessageOptions, LinkedInMessageResult, LinkedInInvitation, LinkedInInvitationOptions, LinkedInInvitationsOptions, LinkedInInviteOptions, LinkedInInviteResult, LinkedInWithdrawInvitationOptions, LinkedInWithdrawInvitationResult, LinkedInViewProfileOptions, LinkedInReactOptions, LinkedInWriteResult, LinkedInProfileViewResult } from './types';
17
17
  export declare class OneShot {
18
18
  readonly hunts: Hunts;
19
19
  readonly physicalMail: PhysicalMail;
@@ -98,13 +98,13 @@ export declare class OneShot {
98
98
  * Discover local businesses (restaurants, contractors, practices) by
99
99
  * category/keywords × location. Flat price per search, not per row.
100
100
  */
101
- localSearch(options: LocalSearchOptions): Promise<LocalSearchResult>;
101
+ businessFind(options: BusinessFindOptions): Promise<BusinessFindResult>;
102
102
  /**
103
103
  * Resolve a business name + one locating field to its domain, phone,
104
104
  * category and operating status. A miss resolves with `found: false`
105
105
  * (a completed job), never a rejection.
106
106
  */
107
- localResolve(options: LocalResolveOptions): Promise<LocalResolveResult>;
107
+ businessResolve(options: BusinessResolveOptions): Promise<BusinessResolveResult>;
108
108
  /**
109
109
  * Federal contract opportunities (SAM.gov) by NAICS code — Sources Sought
110
110
  * and Presolicitation notices with the contracting officer's published
@@ -112,7 +112,7 @@ export declare class OneShot {
112
112
  * `data_as_of` on the result is the snapshot behind the rows (SAM.gov's
113
113
  * daily extract publish time, or "now" when the live API served).
114
114
  */
115
- govSolicitations(options: GovSolicitationsOptions): Promise<GovSolicitationsResult>;
115
+ recordSolicitationsFind(options: RecordSolicitationsFindOptions): Promise<RecordSolicitationsFindResult>;
116
116
  findEmail(options: FindEmailOptions): Promise<FindEmailResult>;
117
117
  verifyEmail(options: VerifyEmailOptions): Promise<VerifyEmailResult>;
118
118
  deepResearchPerson(options: DeepResearchPersonOptions): Promise<DeepResearchPersonResult>;
@@ -375,6 +375,28 @@ export declare class OneShot {
375
375
  }>;
376
376
  /** One inbound call, with transcript. */
377
377
  inboundCall(callId: string): Promise<InboundCall>;
378
+ /**
379
+ * Call a declared route of the API by method and path (#1580), the one generic call for a route that has no
380
+ * typed method. Follows the Python client's `call_free_get/post/patch/put/delete`:
381
+ *
382
+ * - `path` is the route, with `{name}` (or `:name`) for a path parameter, filled from `params` and URL-encoded
383
+ * (`/v1/compute/{goal_id}/budget`). It must start with `/v1/` and hold no `..` or `?`.
384
+ * - `query` is the query string (null/undefined left out; booleans `true`/`false`; objects and arrays as JSON).
385
+ * - `body` is the JSON body of a `POST`, `PUT` or `PATCH` (an object field is sent as it is); a `GET` or
386
+ * `DELETE` sends none.
387
+ * - A free route is authorised like the other free calls: a signed proof (read scope for `GET`, write scope for
388
+ * any other method) or, in an access-token session, the bearer token. Returns the `data` field of
389
+ * `{ success, data }`, or the whole body when there is none; an empty answer is `{ success: true }`.
390
+ * - `paid: true` sends the route through the quote-to-pay flow of {@link OneShot.tool} (a `POST` only), with the
391
+ * {@link ToolOptions} (`maxCost`, `idempotencyKey`, `wait`, `signal`, ...) given in `options`.
392
+ *
393
+ * @example
394
+ * ```typescript
395
+ * const budget = await agent.route('GET', '/v1/compute/{goal_id}/budget', { params: { goal_id: 'goal_01HX' } });
396
+ * const changes = await agent.route('POST', '/v1/tools/changes', { paid: true, body: { attribute: 'vehicle_identification', key: '1HGCM82633A004352', since: '2026-01-01' } });
397
+ * ```
398
+ */
399
+ route<T = unknown>(method: RouteMethod, path: string, options?: RouteOptions): Promise<T>;
378
400
  /** Signed free request returning the `data` field of `{ success, data }`. */
379
401
  private signedJson;
380
402
  /**
@@ -488,9 +510,10 @@ export declare class OneShot {
488
510
  * ```
489
511
  */
490
512
  cancelComputeGoal(goalId: string, reason?: string): Promise<{
491
- goal_id: string;
513
+ goal_id?: string;
492
514
  status: string;
493
- remaining_budget: string;
515
+ remaining_budget?: string;
516
+ message?: string;
494
517
  }>;
495
518
  /**
496
519
  * Respond to a human-in-the-loop approval task
@@ -565,11 +588,17 @@ export declare class OneShot {
565
588
  run_count: number;
566
589
  }>;
567
590
  /**
568
- * Top up budget for a recurring compute goal.
591
+ * Top up budget for a recurring compute goal, or for a goal (one-off or recurring) that
592
+ * ended because it ran out of budget (`end_reason: 'budget_exhausted'`).
569
593
  *
570
594
  * Uses the quote-then-pay flow: the first call gets a 402 with the top-up price,
571
595
  * the second call (with payment) credits the budget. The amount IS the price.
572
596
  *
597
+ * Funding a goal that ran out of budget sets it back to `active` and wakes it; it keeps its
598
+ * id, tasks, workspace, outputs, done-check and deadline. A goal that ended any other way, or
599
+ * whose deadline has passed, is refused (`invalid_state` / `deadline_passed`). While the first
600
+ * ending's refund is still settling the call fails with a retryable `refund_pending` (409).
601
+ *
573
602
  * @example
574
603
  * ```typescript
575
604
  * const result = await agent.fundComputeGoal('goal_01HX...', 10.00);
@@ -953,6 +982,9 @@ export declare class OneShot {
953
982
  private pollJobHttpImpl;
954
983
  private sleep;
955
984
  private makeRequest;
985
+ /** `{ reason, message }` when a 401 is the API's `invalid_proof` refusal; the response body stays readable. */
986
+ private readInvalidProof;
987
+ private sendLeg;
956
988
  private checkAbortBeforePayment;
957
989
  /**
958
990
  * ETH mode only. Make sure the wallet's *effective* USDC (on-chain balance
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAK5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAiBxD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAClI,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACtE,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAuExD,cAAc,SAAS,CAAC;AAExB,OAAO,KAAK,EAEA,cAAc,EAAE,aAAa,EAAmB,WAAW,EACrE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAC1D,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAC1D,oBAAoB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,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AY;IAOpB,sEAAsE;YACxD,eAAe;IAS7B,uFAAuF;IACvF,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,WAAW;IAMnB,wFAAwF;IACxF,OAAO,CAAC,sBAAsB;IAI9B;;;;;;OAMG;YACW,QAAQ;IAuBtB,iFAAiF;YACnE,oBAAoB;IAMlC,iCAAiC;YACnB,eAAe;IAK7B;;;;OAIG;YACW,eAAe;IAqB7B,gHAAgH;IAChH,OAAO,CAAC,oBAAoB;IAqC5B;;;;OAIG;YACW,uBAAuB;YAuBvB,wBAAwB;CA6GvC;AAED,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ const approvals_1 = require("./approvals");
65
65
  // stay off this public surface (see tests/unit/sdk-provider-cost-removed.test.ts).
66
66
  // Import from the `@oneshot-agent/sdk/receipt` subpath instead.
67
67
  // Keep in sync with package.json `version`. Guarded by version.test.ts.
68
- const SDK_VERSION = '0.49.1';
68
+ const SDK_VERSION = '0.51.0';
69
69
  /** HTTP poll cadence while push is unconfirmed: fast first checks, settling at 2s. */
70
70
  const HTTP_POLL_BACKOFF_MS = [300, 600, 1000, 2000];
71
71
  /** HTTP poll cadence once the WebSocket has delivered for this request. */
@@ -145,6 +145,8 @@ function validateBudgetConfig(budgets) {
145
145
  fraction(budgets.pauseAt, 'pauseAt');
146
146
  return budgets;
147
147
  }
148
+ /** The keys executeToolRequestImpl takes out of a request as SDK options, so they never reach the API body. */
149
+ const PAID_ROUTE_OPTION_KEYS = ['totalTimeoutMs', 'onRequestCreated', 'onAccepted', 'signal', 'onStatusUpdate', 'wait', 'waitForPhones', 'phoneTimeoutSec', 'idempotencyKey', 'approvalId', 'maxCost'];
148
150
  class OneShot {
149
151
  /**
150
152
  * Async factory — required for CDP wallets (account creation is async).
@@ -477,26 +479,26 @@ class OneShot {
477
479
  * Discover local businesses (restaurants, contractors, practices) by
478
480
  * category/keywords × location. Flat price per search, not per row.
479
481
  */
480
- async localSearch(options) {
482
+ async businessFind(options) {
481
483
  if (!options.location || options.location.length === 0) {
482
484
  throw new errors_2.ValidationError('location is required (e.g. ["Austin, TX"])', 'location');
483
485
  }
484
486
  if (!(options.category && options.category.length) && !(options.keywords && options.keywords.length)) {
485
487
  throw new errors_2.ValidationError('At least one of category or keywords is required', 'category');
486
488
  }
487
- return this.tool('local/search', { ...options, limit: options.limit ?? 100 });
489
+ return this.tool('find/business', { ...options, limit: options.limit ?? 100 });
488
490
  }
489
491
  /**
490
492
  * Resolve a business name + one locating field to its domain, phone,
491
493
  * category and operating status. A miss resolves with `found: false`
492
494
  * (a completed job), never a rejection.
493
495
  */
494
- async localResolve(options) {
496
+ async businessResolve(options) {
495
497
  this.validate(options.name, 'name');
496
498
  if (!options.address && !options.city && !options.postal_code && !options.phone) {
497
499
  throw new errors_2.ValidationError('name plus at least one of address, city, postal_code, or phone is required', 'address');
498
500
  }
499
- return this.tool('local/resolve', { ...options });
501
+ return this.tool('resolve/business', { ...options });
500
502
  }
501
503
  /**
502
504
  * Federal contract opportunities (SAM.gov) by NAICS code — Sources Sought
@@ -505,7 +507,7 @@ class OneShot {
505
507
  * `data_as_of` on the result is the snapshot behind the rows (SAM.gov's
506
508
  * daily extract publish time, or "now" when the live API served).
507
509
  */
508
- async govSolicitations(options) {
510
+ async recordSolicitationsFind(options) {
509
511
  if (!options.naics || options.naics.length === 0) {
510
512
  throw new errors_2.ValidationError('naics is required (one or more 6-digit codes, e.g. ["541511"])', 'naics');
511
513
  }
@@ -513,7 +515,7 @@ class OneShot {
513
515
  if (bad !== undefined) {
514
516
  throw new errors_2.ValidationError(`NAICS codes are 6 digits (got ${JSON.stringify(bad)})`, 'naics');
515
517
  }
516
- return this.tool('gov/solicitations', {
518
+ return this.tool('find/record-solicitations', {
517
519
  ...options,
518
520
  notice_types: options.notice_types ?? ['r', 'p'],
519
521
  limit: options.limit ?? 100,
@@ -1148,8 +1150,18 @@ class OneShot {
1148
1150
  async linkedinViewProfile(options) {
1149
1151
  this.validate(options.accountId, 'accountId');
1150
1152
  this.validate(options.identifier, 'identifier');
1151
- const { accountId, identifier, notify, ...rest } = options;
1152
- return this.tool('linkedin/profile-view', { ...rest, account_id: accountId, identifier, notify: !!notify, timeout: options.timeout ?? 180 });
1153
+ const { accountId, identifier, notify, sections, ...rest } = options;
1154
+ const body = { ...rest, account_id: accountId, identifier, notify: !!notify, timeout: options.timeout ?? 180 };
1155
+ // Left off the wire when empty, so a view without sections is the request it always was.
1156
+ if (sections?.length)
1157
+ body.sections = sections;
1158
+ const result = await this.tool('linkedin/profile-view', body);
1159
+ // The server leaves both fields out when the section was not requested; surface that as null.
1160
+ if (result?.profile) {
1161
+ result.profile.experience = result.profile.experience ?? null;
1162
+ result.profile.experience_complete = result.profile.experience_complete ?? null;
1163
+ }
1164
+ return result;
1153
1165
  }
1154
1166
  /** React to a post through the connected account. */
1155
1167
  async linkedinReact(options) {
@@ -1285,6 +1297,95 @@ class OneShot {
1285
1297
  this.validate(callId, 'callId');
1286
1298
  return this.signedJson('GET', `/v1/tools/voice/inbound/${encodeURIComponent(callId)}`, undefined, 'read', 'Failed to get inbound call');
1287
1299
  }
1300
+ /**
1301
+ * Call a declared route of the API by method and path (#1580), the one generic call for a route that has no
1302
+ * typed method. Follows the Python client's `call_free_get/post/patch/put/delete`:
1303
+ *
1304
+ * - `path` is the route, with `{name}` (or `:name`) for a path parameter, filled from `params` and URL-encoded
1305
+ * (`/v1/compute/{goal_id}/budget`). It must start with `/v1/` and hold no `..` or `?`.
1306
+ * - `query` is the query string (null/undefined left out; booleans `true`/`false`; objects and arrays as JSON).
1307
+ * - `body` is the JSON body of a `POST`, `PUT` or `PATCH` (an object field is sent as it is); a `GET` or
1308
+ * `DELETE` sends none.
1309
+ * - A free route is authorised like the other free calls: a signed proof (read scope for `GET`, write scope for
1310
+ * any other method) or, in an access-token session, the bearer token. Returns the `data` field of
1311
+ * `{ success, data }`, or the whole body when there is none; an empty answer is `{ success: true }`.
1312
+ * - `paid: true` sends the route through the quote-to-pay flow of {@link OneShot.tool} (a `POST` only), with the
1313
+ * {@link ToolOptions} (`maxCost`, `idempotencyKey`, `wait`, `signal`, ...) given in `options`.
1314
+ *
1315
+ * @example
1316
+ * ```typescript
1317
+ * const budget = await agent.route('GET', '/v1/compute/{goal_id}/budget', { params: { goal_id: 'goal_01HX' } });
1318
+ * const changes = await agent.route('POST', '/v1/tools/changes', { paid: true, body: { attribute: 'vehicle_identification', key: '1HGCM82633A004352', since: '2026-01-01' } });
1319
+ * ```
1320
+ */
1321
+ async route(method, path, options = {}) {
1322
+ const { params = {}, query = {}, body, paid = false, ...toolOptions } = options;
1323
+ if (!['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].includes(method))
1324
+ throw new errors_2.ValidationError(`Not an HTTP method of the API: ${method}`, 'method');
1325
+ if (!path.startsWith('/v1/') || path.includes('..') || path.includes('?') || path.includes('#')) {
1326
+ throw new errors_2.ValidationError(`Not a route of the API: ${path}`, 'path');
1327
+ }
1328
+ const filled = path.replace(/\{([A-Za-z0-9_]+)\}|:([A-Za-z0-9_]+)/g, (_match, braced, colon) => {
1329
+ const name = braced ?? colon;
1330
+ const value = params[name];
1331
+ if ((typeof value !== 'string' && typeof value !== 'number') || String(value) === '') {
1332
+ throw new errors_2.ValidationError(`${name} is required to call ${method} ${path}`, name);
1333
+ }
1334
+ return encodeURIComponent(String(value));
1335
+ });
1336
+ const qs = new URLSearchParams();
1337
+ for (const [key, value] of Object.entries(query)) {
1338
+ if (value === undefined || value === null)
1339
+ continue;
1340
+ qs.set(key, typeof value === 'boolean' ? (value ? 'true' : 'false') : typeof value === 'object' ? JSON.stringify(value) : String(value));
1341
+ }
1342
+ const target = qs.size ? `${filled}?${qs.toString()}` : filled;
1343
+ if (paid) {
1344
+ if (method !== 'POST')
1345
+ throw new errors_2.ValidationError(`A paid route is called with POST, not ${method}`, 'method');
1346
+ // executeToolRequestImpl strips these keys out of the payload as SDK options, so a body field of the same
1347
+ // name would be dropped silently: refuse it, and tell the caller to send it as an option or rename it.
1348
+ for (const name of PAID_ROUTE_OPTION_KEYS) {
1349
+ if (body && name in body)
1350
+ throw new errors_2.ValidationError(`The body field "${name}" of ${path} is an option of the SDK call and would not reach the API`, name);
1351
+ }
1352
+ return this.executeToolRequest(target, { ...(body ?? {}), ...toolOptions });
1353
+ }
1354
+ const sendsBody = method !== 'GET' && method !== 'DELETE';
1355
+ const scope = (0, deadline_1.deadlineScope)(toolOptions.signal, filled.startsWith('/v1/tools/browser/profiles') ? 150000 : 30000);
1356
+ try {
1357
+ const request = (async () => {
1358
+ const response = await fetch(`${this.baseUrl}${target}`, {
1359
+ method,
1360
+ headers: { ...(sendsBody ? { 'Content-Type': 'application/json' } : {}), ...(await this.signedReadHeaders(method === 'GET' ? 'read' : 'write')) },
1361
+ ...(sendsBody ? { body: JSON.stringify(body ?? {}) } : {}),
1362
+ signal: scope.signal,
1363
+ });
1364
+ if (!response.ok) {
1365
+ if (response.status === 409 && filled.startsWith('/v1/tools/linkedin/')) {
1366
+ const text = await response.clone().text();
1367
+ let code;
1368
+ try {
1369
+ code = JSON.parse(text)?.error;
1370
+ }
1371
+ catch { /* Not JSON. */ }
1372
+ if (code === 'connect_required')
1373
+ throw new errors_1.LinkedInConnectRequiredError(text);
1374
+ }
1375
+ await this.failFromResponse(`${method} ${filled} failed`, response);
1376
+ }
1377
+ const text = await response.text();
1378
+ if (response.status === 204 || !text)
1379
+ return { success: true };
1380
+ const json = JSON.parse(text);
1381
+ return (json && typeof json === 'object' && 'data' in json ? json.data : json);
1382
+ })();
1383
+ return await (0, deadline_1.abortable)(request, scope.signal);
1384
+ }
1385
+ finally {
1386
+ scope.close();
1387
+ }
1388
+ }
1288
1389
  /** Signed free request returning the `data` field of `{ success, data }`. */
1289
1390
  async signedJson(method, path, body, scope, failure) {
1290
1391
  const response = await fetch(`${this.baseUrl}${path}`, {
@@ -1580,6 +1681,11 @@ class OneShot {
1580
1681
  if (response.status === 404) {
1581
1682
  throw new errors_2.ToolError('Goal not found', 404, 'Goal not found');
1582
1683
  }
1684
+ // 202: cancellation is recorded, the refund waits for reservations to settle. A result, not an error.
1685
+ if (response.status === 202) {
1686
+ const pending = await response.json();
1687
+ return { goal_id: goalId, status: pending.status ?? 'pending_settlement', message: pending.message };
1688
+ }
1583
1689
  if (!response.ok) {
1584
1690
  throw new errors_2.ToolError('Failed to cancel compute goal', response.status, await response.text());
1585
1691
  }
@@ -1686,11 +1792,17 @@ class OneShot {
1686
1792
  return json.data;
1687
1793
  }
1688
1794
  /**
1689
- * Top up budget for a recurring compute goal.
1795
+ * Top up budget for a recurring compute goal, or for a goal (one-off or recurring) that
1796
+ * ended because it ran out of budget (`end_reason: 'budget_exhausted'`).
1690
1797
  *
1691
1798
  * Uses the quote-then-pay flow: the first call gets a 402 with the top-up price,
1692
1799
  * the second call (with payment) credits the budget. The amount IS the price.
1693
1800
  *
1801
+ * Funding a goal that ran out of budget sets it back to `active` and wakes it; it keeps its
1802
+ * id, tasks, workspace, outputs, done-check and deadline. A goal that ended any other way, or
1803
+ * whose deadline has passed, is refused (`invalid_state` / `deadline_passed`). While the first
1804
+ * ending's refund is still settling the call fails with a retryable `refund_pending` (409).
1805
+ *
1694
1806
  * @example
1695
1807
  * ```typescript
1696
1808
  * const result = await agent.fundComputeGoal('goal_01HX...', 10.00);
@@ -3015,6 +3127,38 @@ class OneShot {
3015
3127
  });
3016
3128
  }
3017
3129
  async makeRequest(endpoint, data, payment, quoteId, signal, timeoutMs, extraHeaders) {
3130
+ let resp = await this.sendLeg(endpoint, data, payment, quoteId, signal, timeoutMs, extraHeaders);
3131
+ // The API refuses a request whose wallet proof it rejected, saying why (#1437).
3132
+ // A stale clock window or a proof sent twice is cured by signing a new proof:
3133
+ // send the leg again once. Nothing is paid in answer to this refusal.
3134
+ for (let attempt = 0; resp.status === 401; attempt++) {
3135
+ const refusal = await this.readInvalidProof(resp);
3136
+ if (!refusal)
3137
+ break;
3138
+ if (attempt > 0 || (refusal.reason !== 'expired' && refusal.reason !== 'already_used')) {
3139
+ throw new errors_2.OneShotError(`The API refused the wallet proof (${refusal.reason}): ${refusal.message}`);
3140
+ }
3141
+ this.log(`Wallet proof refused (${refusal.reason}); signing a new proof and retrying once`);
3142
+ resp = await this.sendLeg(endpoint, data, payment, quoteId, signal, timeoutMs, extraHeaders);
3143
+ }
3144
+ return resp;
3145
+ }
3146
+ /** `{ reason, message }` when a 401 is the API's `invalid_proof` refusal; the response body stays readable. */
3147
+ async readInvalidProof(resp) {
3148
+ try {
3149
+ const body = await resp.clone().json();
3150
+ if (body?.error !== 'invalid_proof')
3151
+ return undefined;
3152
+ return {
3153
+ reason: typeof body.reason === 'string' ? body.reason : 'invalid',
3154
+ message: typeof body.message === 'string' ? body.message : 'The agent proof could not be verified.',
3155
+ };
3156
+ }
3157
+ catch {
3158
+ return undefined;
3159
+ }
3160
+ }
3161
+ async sendLeg(endpoint, data, payment, quoteId, signal, timeoutMs, extraHeaders) {
3018
3162
  // A leg with no payment attached proves the wallet with a signed agent
3019
3163
  // proof: the API spends an agent's credits, and shows them on a quote, only
3020
3164
  // for a caller that has proven it holds the wallet (a bare X-Agent-ID is a