@torquefi/types
Shared TypeScript types for Platform v1 — no runtime. Scoped package required on npm (unscoped torque-types is tombstoned).
Installation
yarn add @torquefi/types@^0.1.1Subpath exports
| @torquefi/types | Common re-exports |
| @torquefi/types/intelligence | IntelligenceItemV1, feed query params, manifest |
| @torquefi/types/assistant | Chat body, SSE events, functionResults |
| @torquefi/types/opportunities | YieldOpportunitiesResponseV1, LendingOpportunitiesResponseV1 (0.1.1) |
| @torquefi/types/platform | Client config shapes |
IntelligenceActionV1 (0.1.1)
Shared tile shape in Intelligence items[].actions[] and Opportunities markets[].action / lendAction / borrowAction: label, subtitle, torqueUrl, apyPercent, aprPercent, opportunityType, protocol, idleUsd, estimatedAnnualUsd.
Related
OpenAPI for HTTP codegen · API & SDK coverage
Was this helpful?