npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uave/sdk

v0.1.0-pre.32

Published

The business-facing SDK of universal-ai-voice-engine, for both forms a business's code takes: its own MCP server, which it hosts and connects to the platform, and a pack, the same contract run beside the engine. Its main entry is the contract either meets

Readme

Voice SDK

The package has seven entries:

  • @uave/sdk, the root entry, for every business's code: the business MCP contract and portable helpers.
  • @uave/sdk/client, for a business's server-side code: the management client and all management resource types. The implementation file src/management.ts is internal to that entry.
  • @uave/sdk/credentials, for a hosted pack: the optional credential runtime.
  • @uave/sdk/mcp, for a business's own MCP server: its tools and hooks served as the platform calls them, on any MCP framework, with a binder for the official MCP SDK's Server; Integrate your own MCP server takes it step by step.
  • @uave/sdk/pack, for a pack: the returning-caller welcome and the caller-name checks it is built on.
  • @uave/sdk/sim, for tests: the simulator's scenario cards, recorded calls, assertions and runner.
  • @uave/sdk/testing, for your CI: the conformance suite, which runs your own MCP server's route in process as the platform calls it and reports each row, and the fixtures your tests build the platform's requests with.

The package is @uave/sdk on the public npm registry, from 0.1.0-pre.2; before it, it was @vre/sdk, which was never published there. Until 0.1.0 every version is a pre-release, and from 0.1.0-pre.9 each is published under the latest dist-tag, so a plain install takes the newest; pin it exactly. The management entry requires a separately deployed management API.

npm install --save-exact @uave/sdk

Obtain an application key in the console

Once the management service and sign-in adapter are deployed, open /console/manage, choose your line and open Access keys. A holder of keys:write can create a key by selecting permissions, optional agent IDs and an optional expiry in UTC. A blank agent restriction covers that line only; a key left without an expiry never expires and works until you revoke it. The service refuses permissions or agent scope beyond the issuer's authority. Phone callers do not need these keys.

The creation page displays the secret once. Save it directly in your application's secret store; subsequent pages show metadata only. Refreshing or resubmitting a completed creation recovers its key ID without revealing the secret. If the response was lost, revoke that key and create a replacement. The Access keys page lists each key's expiry, Never for a key that does not expire, and its revocation status, and provides revocation through the same command used by the SDK.

Create a business line

Run this in your backend. Keep access keys in your secret store. Use the operator-issued account key to create lines and narrower tenant keys for application requests. Phone callers authenticate through the existing carrier and media path; they do not receive management keys.

import { readFile } from 'node:fs/promises';
import { VoiceClient, type DeclarationFile } from '@uave/sdk/client';

const account = new VoiceClient({
  baseUrl: process.env.VOICE_MANAGEMENT_URL!,
  accessKey: process.env.VOICE_ACCOUNT_KEY!,
});

// Retain these request keys with your onboarding record. Reuse the same key and body after a lost response.
const tenant = await account.tenants.create({ name: 'Example line' }, { idempotencyKey: 'onboard-123:line' });
const client = account.forTenant(tenant.id);
// A JSON array of { path, content } for manifest.json, declared presets and prompts.
// The management API validates these files before accepting the connection.
const files: DeclarationFile[] = JSON.parse(await readFile(process.env.VOICE_DECLARATION_FILES_JSON!, 'utf8'));
const connection = await client.connections.create({ name: 'Business MCP', files }, { idempotencyKey: 'onboard-123:connection' });
const presetId = connection.presets[0];
if (!presetId) throw new Error('The declaration must supply a preset');
const preset = await client.presets.create({
  name: 'Reception', template: { connection: { id: connection.id, revision: connection.revision }, presetId },
}, { idempotencyKey: 'onboard-123:preset' });
const agent = await client.agents.create({ name: 'Reception' }, { idempotencyKey: 'onboard-123:agent' });
const configured = await client.agents.configure(agent.id, {
  schema: 'vre-config-create/1', name: 'Reception configuration',
  preset: { id: preset.id, version: preset.version },
  connection: { id: connection.id, revision: connection.revision },
  // Only the time zone is required. A setting left out saves its default: CONFIGURATION_DEFAULTS' agent name and opening
  // language, the line's name as the business name, no prompt values, and `<agent name> configuration` as the name. A line
  // name with a hidden or control character cannot be a business name: give one, or the save is refused (400
  // business_name_required).
  settings: {
    timeZone: 'America/Los_Angeles', agentName: 'Avery', businessName: 'Example business',
    ...(process.env.STAFF_PHONE ? { staffPhone: process.env.STAFF_PHONE } : {}), // Optional: when the business has one.
    promptSlots: {}, // Supply the values required by your declaration's prompt.
  },
}, { idempotencyKey: 'onboard-123:configuration', expectedRevision: agent.revision });
const configuration = await client.configurations.get(configured.draftConfiguration!.id, configured.draftConfiguration!.version);
const key = await client.accessKeys.create({
  name: 'Configuration editor', agentIds: [agent.id], permissions: ['read', 'configs:write', 'agents:write'],
  expiresAt: Number(process.env.VOICE_KEY_EXPIRES_AT_MS!), // Persist once with this intent; reuse on retry.
}, { idempotencyKey: 'onboard-123:editor-key' });
// Store key.secret immediately using your secret store. Never log it or include it in client-side application code.
// On replay, key.secretUnavailable means revoke this key ID and issue a replacement with a new intent key.

VoiceClient's tenantId and forTenant take a management id, the line's tenant.id (MANAGEMENT_ID_PATTERN, such as tn_…), and refuse any id outside that grammar when the client is built, with invalid_identifier. A call's tenant id, CallBlock.tenantId and the tenant in a request's _meta, meets the wider TENANT_ID_PATTERN and is not one to hand the client.

One tenant is one phone line and one agent. An account can own several lines. Presets and configurations have immutable versions. A configuration pins its connection revision and preset version; editing one does not silently change an active call. A preset's settings may change any option its engine offers (every engine pin a call reads is one), open by default unless the declaration locks it (engines.<id>.locked), and any other key the declaration's tenantSettable names; each preset version's options describes every key its settings may name as JSON Schema 2020-12, with the values the version runs.

A line needs no MCP server. Create its preset with no template, naming an engine such a line runs on (direct_voice), its prompt and its knowledge, with a key that holds connections:write beside presets:write: the platform makes the line's connection, and a configuration that leaves connection out saves the preset's. Its agent answers from that text alone, with no tools. A version of that preset that leaves prompt or knowledge out keeps the newest version's, and the line's connection carries that one preset.

const written = await client.presets.create({
  name: 'Front desk', engine: 'direct_voice',
  prompt: 'Answer callers briefly, from what you know.', knowledge: 'Open Monday to Friday, nine to five.',
}, { idempotencyKey: 'onboard-124:preset' });

Set up or update the phone line

Use agents.setup after saving the configuration. It requires agents:activate and phone:manage and accepts one durable operation for number acquisition, binding and readiness verification. Credentials, the connection's required checks and the deployment's binding gate must be ready. A staffPhone is optional: a version without one sets up and activates, and its line names no staff line. When given, it must be a separate valid destination.

// Persist this key, revision and input with the onboarding record before submitting.
const operation = await client.agents.setup(agent.id, {
  configuration: { id: configuration.id, version: configuration.version },
  number: { kind: 'automatic', country: 'CA', areaCode: '604' },
}, { idempotencyKey: 'onboard-123:setup', expectedRevision: configured.revision });

const progress = await client.operations.get(operation.id);
// Poll with a bounded delay. Only succeeded means binding and carrier read-back agreed.
// When progress.resumable is true, repair the reported issue before calling operations.resume.

For a number already in this tenant's eligible inventory, use number: { kind: 'owned', numberId } with the same command. To let the customer pick a specific number with its monthly price before purchasing, start a durable search with phoneNumbers.search({ country, areaCode, locality? }, { idempotencyKey }), where the optional locality narrows the offers to a city such as Richmond (letters, spaces, hyphens, apostrophes and periods, at most 64 characters; otherwise 400 number_locality_invalid), read it with phoneNumbers.getSearch(searchId) until state === 'answered', and pass chosen: { searchId, e164 } in agents.setup (number: { kind: 'chosen', country, areaCode, chosen } or kind: 'automatic' with chosen) or phoneNumbers.request({ agentId, country, areaCode, chosen }, { idempotencyKey }). Offers with monthlyPrice: null are shown as unpriced and cannot be selected. If a listed search expires (state === 'expired') or another buyer takes the chosen offer (unavailableReason === 'offer_taken'), start or pick from a current search with a new request key. A lost response is retried with the original key, revision and identical input; it returns the same operation. Changing the selection under that key returns 409. The console links a pending setup operation after reload and provides its resume action. Its internal acquisition key is never a customer retry key.

phoneNumbers.request({ agentId, country, areaCode, chosen? }, { idempotencyKey }) remains available when requesting and activating separately. Retain its key and body; retrying returns the same number's current state. Then pass its number id to agents.activate with a pinned configuration and the agent's current revision. The activation waits at bind while the number is requested or purchasing, so there is no need to poll before activating; if the request ends unavailable, the operation fails with the number's unavailableReason as its code, retryable false: request another number and activate again.

A request the platform refuses with a retryable code, such as number_limit_in_flight or number_limit_stage_total, stays the agent's pending request. phoneNumbers.list shows it in pendingRequests, by its pr_ id with its country, areaCode, requestedAt and lastRefusal, and never its key. Resume it by sending the same request again under its original key and body. Or withdraw it with phoneNumbers.withdrawRequest(id, { idempotencyKey }), which needs phone:manage, and then request another number. If the platform accepts it while the withdrawal is under way, the withdrawal withdraws that number too, before purchase, and names it in its answer's number; once the number is being bought, it is refused phone_request_pending, naming the number. While one is pending, a request under a new key is refused phone_request_pending: its VoiceApiError.pending names the pending request's pr_ id, or its number's nr_ id once the platform has accepted it, which phoneNumbers.withdraw withdraws before purchase. A withdrawal that failed after cancelling the request leaves the same pr_ id named there; withdraw it again by that id.

phoneNumbers.list({ limit?, cursor? }) is tenant-scoped and read-only. It returns { numbers, pendingRequests?, cursor? }, the pending requests on its first page alone, with each number's id, state, stateSince, optional e164, derived agentId, and holdEndsAt only when held with a scheduled release (never for a ported number). Times are ISO 8601 UTC strings. holdEndsAt is the earliest release time; restore stays possible until the worker begins release. States are open strings: display an unknown state, but do not offer it for activation. The line and agent pages show the same inventory, one page at a time. Limits are 1–100 (default 20). The cursor is opaque and tenant-bound; an empty page can still have a cursor. Only an absent cursor ends the list. unavailableReason, when present, is an open reason code from the platform and appears only while unavailable.

phoneNumbers.withdraw(numberId, { idempotencyKey }) withdraws a pending request before acquisition starts. If the worker already started a purchase, the canonical writer refuses it; deleting the agent uses its durable cleanup path. The console uses the same commands and retains a pending request's key/body in its retry form. A changed body, agent target or command under that tenant-wide key returns 409. A new request key cannot bypass an unresolved setup or add another number to a bound agent.

To give up a number without deleting its agent, release it. phoneNumbers.release(numberId, { idempotencyKey, expectedRevision }) takes a serving number, needs phone:manage, and is an operation of the agent the number serves: expectedRevision is that agent's revision. New calls stop within seconds of its acceptance: callers hear a busy tone until the platform has stopped the number, then that it is not in service. Calls under way go on. The agent stays, with its configurations, as a draft that holds no number: request, set up or activate another number for it later as you did the first. The number is held for the stage's hold period, as after an agent's deletion (below), and can be restored until the platform begins to let it go, at or after its earliest release time, holdEndsAt. Restore it to the line's agent with phoneNumbers.restore(numberId, { agentId }, { idempotencyKey, expectedRevision }), which needs agents:activate and phone:manage, as activation does, and binds it with the configuration the agent last ran (its saved draft if it ran none): calls to it reach the agent again once the operation succeeds. The agent must hold no number and have saved settings.

const { numbers } = await client.phoneNumbers.list();
const serving = numbers.find(number => number.state === 'serving' && number.agentId !== undefined)!;
const agent = await client.agents.get(serving.agentId!);
const release = await client.phoneNumbers.release(serving.id, { idempotencyKey: 'line-1:release', expectedRevision: agent.revision });
// Poll client.operations.get(release.id) until it succeeds: the number then reads 'held', with holdEndsAt.

const draft = await client.agents.get(agent.id);
const restore = await client.phoneNumbers.restore(serving.id, { agentId: draft.id },
  { idempotencyKey: 'line-1:restore', expectedRevision: draft.revision });
// Poll client.operations.get(restore.id) until it succeeds: the number reads 'serving' and the agent 'active' again.

Both answer the accepted operation with HTTP 202, and a retry under the same key and input answers the same operation. A release refuses a number that is not this line's (404), one that is not its agent's serving number (number_not_from_state), and runs only while no other operation of the agent does (operation_conflict). Its agent's number held for review, quarantined, is released too: new calls stop at once, and the release waits needs_attention (number_needs_attention) until the platform's operators have moved the number on, then operations.resume finishes it. A restore refuses a number once the platform has begun to let it go (number_hold_ended) or has let it go (number_released), one held for review (number_needs_attention), any other number that is not held (number_not_from_state), an agent that holds a number (agent_number_bound) or has no saved settings (configuration_required). A restore the routing refuses, or one not finished by the platform's restore deadline (number_restore_abandoned), puts the number back to held with its earliest release time unchanged, and fails with its code. If putting it back is refused, the restore waits needs_attention with resumable: true: once the platform's operators have repaired the cause, operations.resume puts the number back, or finds it already held or let go, and the restore fails as above, its agent free.

For a declared bearer connection, enter its MCP key through the write-only credential command before activation:

const credentialRequest = { idempotencyKey: 'onboard-123:mcp-key', expectedRevision: connection.revision };
const acceptedCredential = await client.connections.setCredential(connection.id,
  { token: process.env.CUSTOMER_MCP_BEARER! }, credentialRequest);
// acceptedCredential contains connectionId, credential, versionId and writtenAt. It never contains the token.
const credentialOutcome = await client.connections.reconcileCredential(connection.id,
  { idempotencyKey: credentialRequest.idempotencyKey });

Persist the request key and original connection revision before sending. If the response is lost, retry with that same key, revision and token; a changed token needs a new request after the earlier request resolves. The platform freezes the provider version and original authority. reconcileCredential reads metadata and does not send a token, write, promote or probe; it may remain pending while an outcome is uncertain. Display unknown reconciliation statuses without assuming success. rejected and abandoned allow a corrected new request. The platform stores a key before it checks it, so a request that ends rejected, or a setCredential refused 409 credential_probe_failed, can leave its key stored as the connection's current one though the platform never accepted it. Where the connection already had an accepted key, new calls on it are then refused until a later request's key is accepted: when a rotation is refused, send the corrected key as a new request at once. The console shows the same accepted metadata, a blank password field, and the original request's retry/reconciliation actions.

A server whose test address takes a key of its own names it in sandboxAuth, as a server connected by its address does. Enter that key through the same command, naming it as the connection's view does; the main key needs no name:

const sandboxCredential = connection.server?.sandboxAuth;
if (sandboxCredential?.method === 'bearer') {
  await client.connections.setCredential(connection.id, { token: process.env.CUSTOMER_MCP_SANDBOX_BEARER! },
    { idempotencyKey: 'onboard-123:mcp-sandbox-key', expectedRevision: connection.revision, credential: sandboxCredential.credential });
}

The platform checks it against the test address alone, with the key and without it as it checks the main key against the main address, and records it beside the main key; it sends that key to the test address alone, never to the main one. A name the server does not give as a bearer is refused 409 credential_not_declared, writing nothing. A connection holds one key request at a time: send the second once the first has an answer.

A server that declares a report endpoint, reportEndpoint: { url, credential }, enters that endpoint's signing secret through the same command, as { secret } under the name reportEndpoint.credential gives. The secret is yours: save it where your receiver verifies with it first, then send it:

const reportEndpoint = connection.server?.reportEndpoint;
if (reportEndpoint !== undefined) {
  await client.connections.setCredential(connection.id, { secret: process.env.REPORT_SIGNING_SECRET! },
    { idempotencyKey: 'onboard-123:report-secret', expectedRevision: connection.revision, credential: reportEndpoint.credential });
}

Before it stores anything, the platform sends reportEndpoint.url one endpoint.ping, signed under the new secret alone as every report is (verifyWebhook checks it). Only a 2xx answer stores the secret, and reports are signed with it within a minute of its acceptance; any other answer, or none within 5 seconds, is refused 409 credential_probe_failed, nothing is stored, and reports stay signed with the secret stored before (a connection that has none sends no report until one is). A secret outside WEBHOOK_SECRET's grammar (whsec_ and the padded standard base64 of 24 to 64 bytes, as parseWebhookSecret reads it) is refused 400 invalid_request before anything is sent.

A server you open to anyone declares auth: { method: 'none' } and names no credential: the platform holds, reads and sends none for it, so anyone who knows its address can call it, by your choice. Such a connection has no credential to enter (setCredential answers 409 credential_not_required); its activation checks only that it lists its tools and, where it lists any, that calls can use at least one of them.

A connection's setup, the presets, prompts and fixed lines its agents run, is replaced whole by connections.updateSetup, fenced by the record revision the connection's view read:

const current = await client.connections.get(connection.id);
if (current.recordRevision === undefined) throw new Error('read the connection again before saving its setup');
await client.connections.updateSetup(connection.id, { source: 'console', files: setupFiles, recordRevision: current.recordRevision },
  { idempotencyKey: 'onboard-123:setup', expectedRevision: current.revision });

The files are a setup's: a manifest naming a key a setup refuses (SETUP_REFUSED_KEYS) is refused 400 setup_invalid, never dropped. A save from a view another save has since moved returns HTTP 412 revision_conflict: read the connection again and save over what it shows. A view without recordRevision could not read the connection's record; read it again. To have the server serve its setup instead, switch the connection to it with { source: 'server', recordRevision }, which names no files: the platform reads the setup the server serves at vre://agent/setup within a minute of the switch, and a console save switches it back.

connections.versions(id) reads a connection's version history (read), read-only: the version last seen at its server, the versions the platform keeps of it newest first (at most VERSION_HISTORY_SHOWN), each with its tools, the tools calls can't use with their codes and what changed from the version before (tools added, removed and changed, a change of a tool's class or confirmation named with both values, and the setup files changed), and each of your lines on the connection with the version its calls use and why: current, held with the code a newer version was refused with, or locked.

connections.setVersionPolicy(id, input, options) locks a connection to one version of its server (connections:write): { policy: 'locked', versionId, recordRevision } with a versionId its history shows calls can use, and every call of every line on the connection runs that version from its next call, while newer versions are still read and shown; naming another moves the lock, an earlier one too, which is how a change is undone. { policy: 'follow', recordRevision } releases it, each line back on its server's newest version its checks pass. recordRevision is the one connections.get read (ConnectionView.recordRevision), and ConnectionView.versionPolicy shows the policy. A version calls can't use is refused 409 version_not_adopted, a connection with no MCP server 409 version_lock_no_server.

connections.setServer(id, input, options) re-declares a connection's server to add, move or remove its report endpoint (connections:write), keeping the connection, its versions, its lock and its lines: { server, recordRevision }, the server connections.get read with its reportEndpoint changed and every other member as it is. Its reports go to the new endpoint from the next text routed, and from calls within 15 seconds. A newly named report endpoint credential starts unset; set its signing secret with connections.setCredential(id, { secret }, { credential: '<its name>', … }), which pings the endpoint.

A change to any other member of the server is refused 409 server_member_fixed (its url and auth name the server every version was read from; connect another server as a new connection). Removing a report endpoint whose signing secret is set, or renaming its credential, is refused 409 server_credential_held. A connection with no MCP server is refused 409 connection_no_server, and one made from declaration files 409 server_declared: its declaration sets its endpoint.

connections.delete(id, options) deletes a connection, an operation of its own (connections:write), and retires its saved tokens. A connection something uses is refused 409 connection_in_use. connections.uses(id) reads what uses it: the line's agents whose saved or active configuration names it, and the presets and configurations that name it. To delete it with them, confirm exactly those by their ids: each agent is deleted for good, which closes its line and lets its number go (released from your account at its earliest release time, and never restored), and each preset and configuration is retired, kept and never versioned, chosen or activated again (retiredAt; preset_retired and configuration_retired); an agent whose configuration was retired saves its next settings as a new configuration. The confirmation needs agents:write and phone:manage for each agent, presets:write and configs:write for what it retires. A key scoped to an agent the deletion deletes is refused 403 account_key_required, since that agent's deletion ends the key before the deletion finishes: use the account's key, or a line's key with no agent scope. If what uses the connection changed since it was read, the deletion is refused 409 connection_uses_changed, and nothing is deleted; each kind's ids may come in any order. An agent that no longer uses the connection when the deletion reaches it is spared. Call history, transcripts and recordings stay.

const uses = await client.connections.uses(connection.id);
const target = await client.connections.get(connection.id);
const deletion = await client.connections.delete(connection.id, { idempotencyKey: 'offboard-123:connection', expectedRevision: target.revision }, {
  uses: { agents: uses.agents.map(row => row.id), presets: uses.presets.map(row => row.id), configurations: uses.configurations.map(row => row.id) },
});
const progress = await client.operations.get(deletion.id);

For an agent update, call agents.configure with the complete configuration input and the agent's current revision, then activate the returned draftConfiguration using the returned revision and the same owned number. Saving a draft requires both agents:write and configs:write and works before a phone adapter is connected. The settings, version and agent reference commit together. Standalone configurations.createVersion remains available for reusable configurations; it does not move an agent's saved reference. Concurrent stale edits return HTTP 412. A different number on an already bound agent returns HTTP 409 agent_number_bound. A same-number update checks the number record revision without rewriting its lifecycle record. The first activation commits the runtime row, route, number transition and operation checkpoint together. Publishing an artifact alone does not activate it. Inbound calls continue through the shared voice runtime.

agents.setup uses POST /v1/tenants/:tenantId/agents/:agentId/setup with the configuration and number selection above. The lower-level binding command is POST /v1/tenants/:tenantId/agents/:agentId/activate, with body { configuration: { id, version }, phoneNumberId }. expectedRevision becomes If-Match, and idempotencyKey becomes Idempotency-Key. This command also switches a line to a retained configuration version for rollback. Separate phone-binding and phoneNumbers.attach commands are not part of this API.

The v1 status set is draft | configuring | active | archived | deleting | deleted. An agent whose number was released is a draft again, keeping its configurations. agents.archive(id, options) archives an unused draft with no binding or pending operation. It requires agents:write, expectedRevision and an idempotencyKey; the HTTP command is POST /v1/tenants/:tenantId/agents/:agentId/archive with an empty object body. The retained agent remains readable, cannot be edited or activated, and cannot be replaced on its line. Version history and published artifacts remain available. Lifecycle commands enter the SDK contract with their implementation.

agents.delete(id, options) requires agents:write and phone:manage. It accepts deletion even during activation, disables runtime admission atomically, and invalidates keys restricted to that agent. While a release or a restore of the agent's number runs, a deletion is refused (operation_conflict): until the released number is held, or until the restored one serves again or is back in held or let go, at the latest by the platform's restore deadline, and, for a restore waiting needs_attention, until its resume has ended it. An unused draft completes immediately only when no number request is pending; an agent with a pending or bound number stays deleting until the number worker parks the number and removes its route. The purchased number then stays held for one hour on dev and 30 days on staging and production before release. History remains available to owner/line-wide keys, the line's call recordings included: the deletion deletes none. An uncertain carrier write keeps cleanup pending for repair; it never makes the agent active again.

A line has one agent for good, so once its agent is archived, or its deletion is accepted, the line is closed: its TenantView.status reads closed, where an open line's reads open. A closed line's call history, transcripts and recordings stay, and its reads work as before. tenants.list({ status: 'open' }) lists the open lines alone and tenants.list({ status: 'closed' }) the closed ones; with no status it lists every line. A page the filter thins keeps its cursor, and only a page with none ends the list.

const current = await client.agents.get(agentId);
const removal = await client.agents.delete(current.id, {
  expectedRevision: current.revision,
  idempotencyKey: 'delete-agent-20261017',
});
const progress = await client.operations.get(removal.id);

Use owner or line-wide authority to follow deletion: a dedicated agent key loses its authority when deletion is accepted.

Operation results identify their resource with subject: { kind, id }. Operation kind, step, status and subject kind are open strings. Display these values and use the required resumable flag for resume availability; the service derives it from its current policy and checks authority again on resume. An unsupported kind, checkpoint or status is readable with resumable: false. Optional subjectRevision identifies the revision committed by the operation’s latest subject mutation. Agent operations use subject.kind === "agent" and subject.id; there is no duplicate operation agentId or agentRevision.

Monitor calls and configure in the console

The backend client exposes tenant-scoped history under calls:read and stored call transcripts under transcripts:read. List results are compact metadata; get returns the retained tool names, outcomes and durations, with caller speech, transcripts and credentials excluded; calls.transcript(callId) returns the settled call's stored transcript document (CallTranscript: spoken turns with speaker and atMs, tool invocations with outcome and duration, and completeness metadata), or 404 transcript_not_kept / transcript_gone when none is stored. A tool invocation also carries input, what the agent asked, and summary, the start of what it got back, each at most TRANSCRIPT_TOOL_DETAIL_LIMITS characters (cut with TRANSCRIPT_TOOL_DETAIL_TRUNCATED) and otherwise kept as written, since the platform scans no tool detail; a transcript stored before 2026-10-26 may hold TRANSCRIPT_TOOL_DETAIL_REDACTED where the scan then found a credential-shaped value. Both are absent on a transcript stored before them and on a line whose transcriptToolDetailOff setting leaves them out.

A transcript also carries the call's turn timeline (ADR-0103): one entry per caller turn with when the caller's speech ended and how the engine read it, when their words were in hand, when the model was asked and answered, the tools' count and time, the agent's first voice frame and its audio's end, each whole milliseconds from the call's start on the transcript's own clock, and its outcome; the response time a reviewer reads is firstAudioAtMs - callerEndedAtMs on a turn neither overlapped (the agent was already speaking) nor queued (the turn waited for the agent's own audio to drain). Its notable events name the platform's codes alone. calls.list summaries carry the engine, the direction and measures, the timeline's summary, and the listing takes filters (CallListQuery): the start's bounds (from inclusive, to exclusive, instants as toISOString writes them), the outcome (completed, abandoned, escalated, failed or in_progress) and the direction; a filtered page can be short, or empty with a cursor, which is bound to the filters it was answered under.

On a stage that keeps recordings, every call is recorded by default and kept until deleted, as three lossless FLAC files (CALL_RECORDING_TRACKS): agent, everything the platform sent the caller; caller, the caller's audio as the line delivered it; and merged, the whole call. Each is mono, 16-bit, at the phone line's rate, CALL_RECORDING_FORMAT.sampleRate (8,000 Hz), and never more than CALL_RECORDING_FORMAT.maxBytes. A line turns it off with its configuration's recordingEnabled: false (CONFIGURATION_DEFAULTS.recordingEnabled is true); a save that does not name the switch keeps the value it had: a configuration's next version its own, a new configuration the line's, its active configuration's, else the newest one the line saved that names one; only a line where no configuration names a switch takes the default. Telling callers that calls are recorded, where the law requires it, is the business's. calls.list and calls.get show a recorded call's recordings: when capture started, how long the tracks are and each file's size. calls.recording(callId, track) returns a file's bytes under recordings:read, or 404 recording_not_kept (none was kept) / recording_gone (deleted, or no longer available). Recordings are a data asset: no access key deletes them, and neither does an agent's deletion (agents.delete, above). The platform's operators delete a call's, or a line's, only for a legal request, such as a court order or a caller's request to erase their data, which a business makes to them. The same erasure then takes the rest of that call's or line's data: its transcripts, its tool calls' arguments and results, its transfer results, the texts out and outbound call requests that name the call (for a line, all of the line's, and its texts in), and each call's record last. Once it has ended, calls.get, calls.transcript and calls.recording answer 404 not_found for the call; until then its record stays, and calls.recording answers 404 recording_gone. Opt-outs are kept. A key an earlier release of the platform issued may still list recordings:delete, which grants nothing.

const page = await client.calls.list({ limit: 20 });
const firstCall = page.items[0];
if (firstCall) {
  const details = await client.calls.get(firstCall.callId);
  // details.artifactHash / bundleDigest identify what ran; details.tools holds metadata only.
  const transcript = await client.calls.transcript(firstCall.callId);
  // transcript.entries holds Caller/Agent turns and tool invocations in order (requires transcripts:read).
  if (details.recordings) {
    const whole = await client.calls.recording(firstCall.callId, 'merged');
    // whole holds the call's merged track as FLAC bytes, CALL_RECORDING_FORMAT (requires recordings:read).
  }
}
// Continue with page.cursor, even when a page is empty after ownership filtering.

History uses a tenant/time index and reads current records before returning them. Index membership can lag. Records written before this feature is enabled need an explicit backfill to join history; direct call-ID reads remain available until the call is erased. A revoked key is checked again after a pending history read completes.

Open the agent to edit its configuration: preset version, persona, business name, time zone, language, staff phone, prompt values, greeting and transfer number. Only the preset and the time zone are required; a field left empty takes its default, which the saved version shows. Save creates a version and attaches it as the agent's draft. The linked preset edits instructions and its engine's options, such as the model and the voice. A new line needs its own connection and preset first. The editor shows the exact saved draft; settings on active calls change only after activation.

The management application mounts /console/manage beside /v1. Its forms create lines, connections, presets, configurations and agents; edits create immutable versions, setup requests a number or uses an owned one and shows its durable operation status, and unused drafts can be archived. The Access keys page creates, lists and revokes application keys. Select the edited preset version when creating a configuration. SDK-created drafts appear in the same console. The deployed sign-in adapter supplies verified account authority and a CSRF-protected session. Its authority stays server-side; a newly issued application secret appears only in its initial, non-cacheable creation response. These source routes still require the separate management deployment and selected identity adapter.

Ask for an outbound call

A line's agent can call out. outboundCalls.request({ to, agentId?, context?, language? }, { idempotencyKey }) asks for one under outbound:place and answers the request queued; the platform places the call from the line's number in the business's own carrier sub-account and runs it on the line's agent as an inbound call runs. to is the number called, in E.164 in any country, 8 to 15 digits in all, a North American number as +1 and its ten digits. The platform keeps no list of countries: the carrier's dialling permissions decide where a call can go, and a call they refuse ends failed with failure destination_not_permitted. context is the business's own text for the agent on this call, at most PROMPT_LIMITS.directivesBytes bytes, which the platform never parses or logs and drops when the call ends. Whom to call, when and why, and whether the business may, are the business's own to decide; the platform checks none of them and speaks no word of its own on the call. The call greets from the line's outbound greeting, which activation writes from the outboundGreeting of the configuration it activates, held to greetingOverride's rules; with none, from the default hello, never from greetingOverride. Activation writes it from the release that paid ADR-0094's DEBT-0094-8 (2026-11-03): a line last activated before that release served has none until it is activated again.

A retry under the same key answers the same request as it stands; another body under that key is refused 409 outbound_intent_key_reused. A request is refused with nothing recorded: 400 outbound_request_invalid, or destination_invalid for a to in no such form, a national spelling or fewer than eight digits among them; 409 line_not_serving, line_number_ambiguous, line_not_isolated (the line's number is not yet in its business's own carrier sub-account) or line_suspended; on a development stage, 403 callee_not_allowed for a number no operator listed for the line. A stage that places no outbound calls answers 503 outbound_unavailable.

On the call, the call block your tools are handed says it was placed: direction reads outbound and outbound.outboundCallId names the request; dialedNumber is the line's number and caller the person called, unverified under the reason outbound-call. On a live_s2s line the voice reads the request's context before it greets; on a direct_voice line the agent reads it beside your directives for the call, labelled as your text for this call as the voice reads it. Its call.ended carries the same direction and outboundCallId, and every request that ends, answered or not, is reported outbound_call.finished, with its outcome, its failure and its callId.

outboundCalls.get(id) and outboundCalls.list({ limit?, cursor? }) read requests under calls:read, newest first. OutboundCallView.state reads queued, dialing, in_call or ended, with outcome completed, no_answer, busy, failed (with failure, a code) or cancelled; each is an open string. callId names the call's record once the call is placed. outboundCalls.cancel(id, { idempotencyKey }) ends a queued request at once and cancels one being dialled before it is answered; an answered call runs to its end.

const asked = await client.outboundCalls.request({ to: callee, context: 'Why the business is calling, in its own words.' },
  { idempotencyKey: 'visit-42:call' });
const current = await client.outboundCalls.get(asked.id);
// current.state moves from 'queued' to 'dialing', 'in_call' and 'ended'; current.callId names the call's record.

Text the line's customers

A line texts from its own number, the one it answers calls on, once the business turns texting on: messaging.get() reads the line's texting under messages:read, and messaging.update({ enabled }, { idempotencyKey, expectedRevision }) turns it on or off under messaging:configure. MessagingView says whether the number can text (smsCapable) and, for each destination (us, ca, other), whether a send there is accepted (state open or registered) and how the line's texts there have fared over the last 30 days, the countries the stage opens to texting (countries, ISO 3166-1 alpha-2 codes as libphonenumber uses them, ['CA'] today: a number of any other country is refused), and where its reports go (reports: connection, its connection declares a report endpoint, or none); where the platform cannot say, unavailable names the member and its reason. Texting turns on either way: a line whose reports go nowhere reads its texts in by receivedMessages and its opt-outs by optOuts.list.

messages.send({ to | callId, body, replies?, sendAt? }, { idempotencyKey }) sends one text under messages:send, to to in E.164 (a +1 number as its ten digits) or to the other party of one of the line's calls, by callId; it is answered queued, and every text that ends is reported message.finished with its outcome (delivered, undelivered, failed, cancelled, expired, unknown) and, beside a failure, its code. body is your words, at most 1,600 GSM-7 characters or 700 where any character is outside GSM-7; what to text, whom and when are yours, and the platform speaks no word of its own. A text may ask a question: replies gives 1 to 12 options, each your own value and the words a reply chooses it by, an optional ref of yours and an expiresAt. A reply that chooses one is reported message.received with replyRef, replyValue and inReplyTo; one that several open questions accept names them as candidates and matches none; one that no question accepts carries its words alone. A question nobody answered is reported reply.expired at its expiresAt, five minutes or more after it. No option may accept a word the carrier reads as a change of consent or a request for help (RESERVED_REPLY_WORDS): refused reply_option_reserved. messages.get, messages.list({ customer?, limit?, cursor? }) and messages.cancel read and cancel texts out. receivedMessages.get(id) and receivedMessages.list({ customer?, limit?, cursor? }) read the texts your customers sent the line, under messages:read, newest first, each as its message.received report carries it, once the platform has read it: a report you missed, or the history, is kept until it is erased.

Every text, opt-out and texting report names its channel, an open set (MESSAGE_CHANNELS) that holds sms and email today: a send without one is sms, and a send naming a channel the platform does not send on is refused message_request_invalid. Addresses (to, from, customer, an opt-out's number) take their channel's form, E.164 for sms and an email address for email; phoneNumberId and segments are sms's, present on every sms text, absent on an email and optional in their types. Read a channel you do not know as something to display, never to act on.

const texting = await client.messaging.get();
if (!texting.enabled) await client.messaging.update({ enabled: true }, { idempotencyKey: "texting:on", expectedRevision: texting.revision });
const asked = await client.messages.send({
  to: customer,
  body: "Your booking tonight at 7: reply 1 to confirm or 2 to cancel.",
  replies: {
    ref: "visit-42",
    options: [{ value: "confirm", accepts: ["1", "yes"] }, { value: "cancel", accepts: ["2", "no"] }],
    expiresAt: new Date(Date.now() + 2 * 60 * 60 * 1000).toISOString(),
  },
}, { idempotencyKey: "visit-42:ask" });
// asked.state reads 'queued'; its message.finished says whether it was delivered, and a reply arrives as message.received.
const theirs = await client.messages.list({ customer }); // this customer's texts out, newest first; the number travels in the body

A line may also send email, out only, on a stage that sends it (dev alone today; elsewhere message_request_invalid) and once the line's texting is on and its operator has switched its email on (else 409 email_channel_unavailable). messages.send takes an EmailSendRequest: channel: "email", to, fromName (1 to 100 UTF-16 units, no @ or direction control), subject (1 to 200), body (the text part) and html, both whole, and optionally replyTo, unsubscribeUrl and sendAt. The email goes from the stage's own sending address under your sender name; the platform adds no word or link of its own, so an unsubscribe line in the body is yours, and naming unsubscribeUrl declares that your link takes the one-click POST mailbox providers may send it (RFC 8058). The parts together may hold at most 65,536 bytes of JSON (body_too_long). The email is read and cancelled as a text is, and listed beside the line's texts, though never by customer. It ends delivered, undelivered (unreachable, a permanent bounce; provider_suppressed, the mail provider's own list), failed, unknown or, cancelled while queued, cancelled, reported message.finished with segments: null. A permanent bounce or a complaint stops the address on the line, reported contact.opted_out with channel: "email" and via bounce or complaint, and a later send to it is refused recipient_opted_out; one reported after the email ended arrives as that report alone. These stops are not in optOuts.list.

import type { EmailSendRequest } from "@uave/sdk/client";

const newsletter = {
  channel: "email",
  to: "[email protected]",
  fromName: "Example Shop",
  subject: "This week",
  body: "This week's news.\n\nUnsubscribe: https://shop.example.com/u/abc",
  html: "<p>This week's news.</p><p><a href=\"https://shop.example.com/u/abc\">Unsubscribe</a></p>",
  unsubscribeUrl: "https://shop.example.com/u/abc",
} satisfies EmailSendRequest;
const sent = await client.messages.send(newsletter, { idempotencyKey: "news-week-48:guest" });
// sent.channel reads 'email' and sent.state 'queued'; its message.finished says how it ended.

A customer who texts STOP is opted out by the carrier and by the platform alike, reported contact.opted_out, and a send to them is refused recipient_opted_out until they text START, reported contact.opted_in. The platform reads only the words the carrier and the FCC's rule act on (OPT_OUT_WORDS, OPT_IN_WORDS, HELP_WORDS): a business that asks its customers to reply another, such as Canada's French ARRET (COUNTRY_KEYWORDS_FOR_BUSINESS_USE), reads that reply from message.received itself, compares it as the platform compares a reply (foldReply, so ARRET and Arrêt! read as listed), and records the stop with optOuts.import. Opt-outs the business already holds are handed in with optOuts.import(entries, { idempotencyKey }) and read with optOuts.list({ limit?, cursor? }), which asks by a read-only POST so that no number is ever in an address. What each report means for the business is the business's: the platform matches, reports and refuses, and acts on no answer.

import type { KnownWebhookEvent } from "@uave/sdk";

/** What a text's report asks of your business, in your own terms; null for every other event. */
type TextingTodo =
  | { readonly kind: "answered"; readonly questionId: string; readonly ref: string | null; readonly value: string | null }
  | { readonly kind: "ambiguous"; readonly candidates: readonly string[] }
  | { readonly kind: "words"; readonly from: string; readonly words: string | null; readonly optOut: string | null }
  | { readonly kind: "ended"; readonly messageId: string; readonly outcome: string; readonly failure: string | null }
  | { readonly kind: "unanswered"; readonly questionId: string; readonly ref: string | null }
  | { readonly kind: "consent"; readonly number: string; readonly optedOut: boolean; readonly via: string }
  | null;

export function textingTodo(event: KnownWebhookEvent): TextingTodo {
  switch (event.type) {
    case "message.received": {
      const { inReplyTo, replyRef, replyValue, candidates, from, text, optOut } = event.data;
      if (inReplyTo !== null) return { kind: "answered", questionId: inReplyTo, ref: replyRef, value: replyValue };
      if (candidates !== null) return { kind: "ambiguous", candidates };
      return { kind: "words", from, words: text, optOut }; // optOut says what the platform read as a request to stop
    }
    case "message.finished":
      return { kind: "ended", messageId: event.data.messageId, outcome: event.data.outcome, failure: event.data.failure };
    case "reply.expired":
      return { kind: "unanswered", questionId: event.data.messageId, ref: event.data.ref };
    case "contact.opted_out":
      return { kind: "consent", number: event.data.number, optedOut: true, via: event.data.via };
    case "contact.opted_in":
      return { kind: "consent", number: event.data.number, optedOut: false, via: event.data.via };
    default:
      return null;
  }
}

Errors and compatibility

VoiceApiError exposes a safe code, HTTP status, retryable, and optional requestId. Error codes are extensible; handle unknown codes using status and retryability. Unknown permission names and configuration fields are rejected. Lists return at most 100 entries and an opaque cursor. Keys are scoped by environment, tenant, permissions and optional agent IDs, with expiry checks where a key has an expiry (AccessKeyMetadata.expiresAt is absent for one that never expires) and durable revocation checks. HTTP 412 means a conditional-write precondition failed, including revision, lock or uniqueness conditions. Refetch authorized resource and operation state before retrying. HTTP 409 covers idempotency-payload conflicts and explicitly classified domain conflicts, including agent_exists when a second intent creates an agent on an occupied line. keys:write authorizes key creation, listing and revocation. A key can delegate that permission only if it already holds it; every child stays within the issuer's tenant, permissions and agent scope. A child of a key that expires must expire, no later than its issuer; a child of a key that never expires, or one made in the console, may have any future expiry or none (AccessKeyCreate.expiresAt left out). A tenant-issued key cannot receive tenants:write or mint an account-owner key. calls:read authorizes results. An inbound phone caller uses carrier authentication.

The client uses HTTPS, refuses redirects, bounds responses and times out requests. It never retries writes implicitly. Retry a transport failure with the original idempotency key and identical input. A changed payload under that key returns HTTP 409. The SDK sends keys matching IDEMPOTENCY_KEY_PATTERN unchanged. One server-side validator additionally reserves the delete: and setup: prefixes for the platform's deletion cleanup and setup operations; HTTP, console forms, mutation receipts and customer phone-intent intake refuse either prefix with 400 invalid_request. Secret values are only returned on the first successful key-creation response; retrying returns the original metadata with secretUnavailable even if the created key has since expired.

Current integration boundary

This source implements resource creation/versioning, keys, HTTP operations, resumable phone activation ports, a bounded activation worker, tenant call reads, unused-draft archive, number request/withdrawal, credential entry/reconciliation and a console using the same service. Hosted identity, the narrow credential writer role, number-worker composition and customer phone acceptance, call stop, pause and consumer report delivery still need integration. Hosted browser sessions follow phone v1; outbound dialing is a separate scope decision. The same generic client and declaration contract serves DineCall OS, car rental and other businesses; their rules stay in their MCP servers or optional packs.

Integrate your own MCP server

Connect a server you host in seven steps, in this order. The section stands on its own: the ADR numbers it names are the maintainers' records of each decision, ADR-0100 for the entry, ADR-0070 for connections, ADR-0005 for the SDK's shape and ADR-0066 for its versions, kept in the platform's repository. The examples leave undeclared the names that stand for your code: authenticate, handle, read, lookup, states, TOOLS, server, handleTool, keyTenant, keepOnce, route and endpointTenant, beside client, connection and the others the sections above use. They are yours: the examples prove no permission, isolation or idempotency of yours.

1. Install and pin

Install the version whose section in CHANGELOG.md lists the capability you use, such as "Added the entry @uave/sdk/mcp", and pin it exactly: from 0.1.0-pre.9 until 0.1.0 each pre-release is published under the latest dist-tag (earlier ones under next), so a plain install takes the newest. Run the server on a Node version that section's "Proven on" line names.

npm install --save-exact @uave/sdk@<version> @modelcontextprotocol/sdk@<1.x version>
npm ls @uave/sdk @modelcontextprotocol/sdk

A server imports @uave/sdk, the contract and its helpers, and @uave/sdk/mcp, the platform's methods; the code that connects it imports @uave/sdk/client, the management client. The route of step 2 also imports the official MCP SDK, @modelcontextprotocol/sdk, which @uave/sdk neither depends on nor names as a peer, so install it beside it, pinned exactly, from its 1.x line: run a production server on 1.32.2 or later, which fixes the advisories against 1.31.0 and earlier (GHSA-46jr-4wx8-v453 among them); the repository tests the binder on 1.31.0, and the official SDK's 2.x (@modelcontextprotocol/server) is untested (ADR-0100, DEBT-0100-1). Commit the lockfile. A dependency bump, an SDK release and your deploy are three events: a release changes no running server, which runs a new version only once you install, test and deploy it (ADR-0066 §9).

2. Serve the route

Your server serves its tools and the platform's methods with @uave/sdk/mcp: give mcpMethods your tools and hooks, built per request for what your bearer key authenticated, and the tenant ids that key serves; serve the result on any MCP framework, or on the official MCP SDK's Server (1.x) with serveMcpMethods. Here in a stateless route, a new server per request (TOOLS is your ToolDefinition[]; authenticate and the principal it returns, handle, read, lookup and states, the durable store that keeps each call's state, are yours):

import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
import { mcpMethods, serveMcpMethods } from "@uave/sdk/mcp";

export async function POST(request: Request): Promise<Response> {
  // Your bearer check, as the entry authenticates nothing: compare SHA-256 digests of the header with timingSafeEqual,
  // and check Host.
  const principal = await authenticate(request);
  if (principal === null) return new Response(null, { status: 401, headers: { "www-authenticate": "Bearer" } });
  const methods = mcpMethods({
    tools: TOOLS,
    // A string. meta.signal ends at the tool's deadline, or when the request is cancelled or its connection closes; an
    // abort is no proof the effect did not happen: recover by lookup or resume.
    call: (name, args, meta) => handle(principal, name, args, meta),
    resource: (uri, tenantId, call) => read(principal, uri, call), // matchPackResource(uri) names it; null for none
    // The state calls carry no tenant on the wire: this closure over the principal is their only isolation.
    exportState: async (callId) => (await states.get(`${principal.tenantId}:${callId}`)) ?? null,
    importState: (callId, state) => states.set(`${principal.tenantId}:${callId}`, state), // return its promise
    lookupAction: (req) => lookup(principal, req.idempotencyKey, req.tool),
    // setup: () => files, // your agent setup's files, served at vre://agent/setup
  }, [principal.tenantId]);
  const server = new Server({ name: "my-business", version: "1.0.0" }, { capabilities: methods.capabilities });
  serveMcpMethods(server, methods);
  const transport = new WebStandardStreamableHTTPServerTransport({ sessionIdGenerator: undefined, enableJsonResponse: true });
  await server.connect(transport);
  return transport.handleRequest(request);
}

The methods admit each request as the platform expects it (ADR-0100): a call whose call block names a tenant your key does not serve is refused -32602 tenant mismatch, a resource read of another tenant -32603, so a wrong key fails loudly instead of reading as absent; a tool you do not list is the platform's unknown_tool refusal; a submit without the ledger's key, and arguments your tool's parameters refuse (but on a resume), are decided refusals your handler never sees; a handler that throws is -32603 the outcome is unknown, none of its text sent. A hook you leave out is a method the platform reads as not offered. A call without the platform's call block is refused -32602, so a client that is not the platform (a local MCP inspector) cannot call your tools through the entry; to try your tools from one, serve them on a separate development route of your own, never on the route the platform calls. The state calls carry no tenant on the wire: the hooks' closure over the authenticated principal is their only isolation, so key what they keep by the principal's tenant, as above, in a store every instance of your route reads (a module Map serves one process only), and return its promise from each hook, which the entry awaits. Refuse a body over the size you accept before the transport reads it. The repository's example server runs the whole of it on Node's http.

Each tool call's meta is the call as the platform knows it (CallMeta): the call block, the consent facts, confirmed, the ledger's key with resume on a submit, and deadlineAt. On a line whose preset turns on toolCallConversation (an Advanced setting of the direct_voice engine, off by default), it also carries the call's conversation so far, beside the call block, whatever the call's consent facts, as its transcript does:

  • callerTurns, each of the caller's turns that reached the agent, oldest first and the running turn last, with its ordinal (the brain run that answers it, run.ordinal in the consent facts), its text as speech recognition heard it and its language. The ordinal names a turn: identify one by it, never by the list's length or an entry's place, which move as the oldest turns leave. Ordinals rise and never repeat, but they may skip a number, where a run's words joined the next run's, so a gap is no dropped turn.
  • agentLines, each of the agent's lines, with the ordinal of the caller turn before it (0 before the first) and its playout (AGENT_LINE_PLAYOUTS): played once the carrier acknowledged playing all of the answer that holds it and the voice spoke every word of it, cut when the platform cleared the agent's audio before the caller heard all of that answer, and unconfirmed otherwise (still playing, its voice failed, a word of it left unspoken, or no record kept). A line joins once the engine wrote it into the call's transcript, so the agent's words before a tool call in the same answer are not yet among them.
  • callerTurnsDropped and agentLinesDropped: each list is bounded on its own (CALL_CONVERSATION_LIMITS), keeping its newest entries and counting the older ones it left out. A list that left any out is the call's history in part: a rule that needs a detail the caller may have said earlier reads a count above 0 as "not known", never as "not said". An entry longer than its bound is cut to its start and says so (truncated).

confirmed is true on a confirm the host admitted: an open quote of the call's arguments, of the newest read-back before the caller's answer, the last reply that read a quote back, of any tool, and that answer a caller turn heard in the call's run after the quote was handed back, not spent on another confirm, while the caller's answers could be read. Two quotes read back in one reply are both the newest, so the answer may confirm either, and one alone; a quote read back in an earlier reply is refused quote_not_last_heard until it is quoted again. A reply none of which played reads nothing back; one the caller cut into after some of it played keeps its place in that order. Whether its quotes stay open is the engine's: on direct_voice with its barge-in setting the caller's cut withdraws them, and on realtime_s2s so does a cut of a reply that had itself called a tool; elsewhere a part-heard reply's quotes stay open. On a direct_voice line with its barge-in setting (bargeInPolicy) the turn must also hold a word begun after the agent stopped speaking; live_s2s, realtime_s2s and direct_voice without that setting do not measure it, so there confirmed says nothing about words said over the agent's audio. Four of those rules are the host's confirm checks (CONFIRM_CHECKS), each on unless turned off: newestReadBackOnly, the newest read-back; oneConfirmPerAnswer, one confirm per answer; withdrawUndelivered, the withdrawal of the quotes of a reply that was cut or never delivered; and refuseOverAgent, the word begun after the agent stopped. A tool turns one off for itself with confirmationRequired.checks ({ newestReadBackOnly: false }), and a line for all its tools with its engine's pin (confirmNewestReadBackOnly, confirmOneConfirmPerAnswer, confirmWithdrawUndelivered and, on direct_voice, confirmRefuseOverAgent, each false): confirmed is then true without that rule, and the call's record lists each check a confirm ran without (CallDetails.tools[].checksNotRun). The host reads no word of the turn: whether the caller agreed is the agent's judgment. A business that wants a stricter rule refuses the call in its own handler. It finds the quote the confirm answers as the openQuotes entry whose seq is matchedQuoteSeq, and an open quote's inputAfterReadBack says whether the run holds a turn that may confirm it. On a direct_voice line with toolCallConversation on, the turn that funded the confirm is the callerTurns entry whose ordinal is run.ordinal, and a rule over the caller's words reads its text; no other engine sends the caller's turns, so on those lines a business's rule reads the consent facts alone.

Late in a long call the two lists hold up to 64 KiB, and their members' names. Until the old wire names go (DEBT-0112-1, before sdk-v0.1.0), the platform writes the call's members under both their names (vreMetaEntries), s