API reference
Every value and type exported by @crouter/sdk, read from the TypeScript compiler.
Every export of @crouter/sdk, read from the TypeScript compiler at build time and grouped by what it is used for. Types re-exported from @crouter/api are documented with that package.
Client
Constructing a client, the options it takes, and the authentication and profile calls it exposes.
Crouter, CrouterOptions, AuthStatus, AuthStatusParams, EnsureProfileParams, AppProfile
Runs
Starting a run, reading its status, trace and outcome, and parsing a result against a schema.
RunStartParams, RunStartResult, RunObject, RunStatus, RunActivity, RunTrace, RunDeleteResult, RunParsedOutcome, RunParseOptions, RunParseParams
Nodes
Creating a node, messaging it, cancelling it, and reading the outcome it reports.
NodeCreateParams, NodeOutcomeOptions, ParsedOutcome, MessageParams, CancelParams
Streaming and activity
A node's live event stream and the activity feed built on top of it.
NodeStream, NodeStreamEvent, NodeStreamEventType, NodeStreamEventListener, NodeEventsOptions, ActivityStep, DescribeTool, describeToolDefault, followActivity, RunStream, RunEventListener, UnknownRunEvent, RunReply, RunReplyCollectOptions, RunReplyEnding, RunReplyEvent, RunReplyResult, SentRunMessage, cursorFromRequest, forwardRunEvents
Errors
The base error every failed request throws, and its status-specific subclasses.
CrouterError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, SdkErrorCode, sdkErrorCodes, mapError
Schemas and request options
Structured-output schemas, the type they produce, and the options accepted by every request.
Files, uploads and shares
Downloading files, uploading attachments, and sharing a run with someone else.
FileDownloadOptions, Upload, UploadCreateParams, AttachmentLink, Share, ShareCreated, ShareCreateParams
Memory
Reading the person's public memories from an app's server.
MemoryDocument, MemoryGetParams, MemoryListItem, MemoryListPage, MemoryListParams
Questions
Questions a run asks the person, and the answers sent back.
Question, QuestionAnswered, QuestionFields, QuestionResponses, QuestionSlot, QuestionStatus
Custom objects and providers
Receiving a custom object's queued deliveries, and listing the tools a provider grants.
CustomObjects, CustomDeliveryStream, ReceiveOptions, ProviderToolEntry
Signing people in
The OAuth client that connects a person to the app, where connections are stored, and how a refused refresh is read.
OAuth2Client, OAuth2Options, MemoryConnectionStore, ConnectionStore, Connection, Identity, AuthorizeNonce, profileFromClaims, RefreshFailure, RefreshRefusal, refreshRefusal, generateKeyPair, parsePrivateJwk, privateKeyFromFile