> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: Calls

> Reference for the Calls interface in bijection/server.

[server](/api/modules/server).Calls

## Methods

### addWorkload

▸ **addWorkload**\<`C`>(`name`, `command`, `options`): `Promise`\<\{ `call_id`: [`ExternalCallId`](/api/modules/server#externalcallid) ; `credential_digest`: `string` ; `authority_digest`: `string`  }>

Deliver a scoped worker credential through host-only request-body slots.
Only digests return to guest code; the command owner retains its sealed
context and retries the same delivery under the original command.

#### Type parameters

| Name | Type |
| :- | :- |
| `C` | extends [`CommandHandle`](/api/modules/server#commandhandle)\<`any`> |

#### Parameters

| Name | Type |
| :- | :- |
| `name` | [`CallName`](/api/modules/server#callname) |
| `command` | `C` |
| `options` | `C` extends [`CommandHandle`](/api/modules/server#commandhandle)\<`any`, `"collection"`> ? \{ `target?`: [`CommandTarget`](/api/modules/server#commandtarget)  } : \{ `target`: [`CommandTarget`](/api/modules/server#commandtarget)  } & \{ `args`: [`CommandArgs`](/api/modules/server#commandargs)\<`C`> ; `context`: `Record`\<`string`, [`Value`](/api/modules/values#value)> ; `release?`: `string`  } |

#### Returns

`Promise`\<\{ `call_id`: [`ExternalCallId`](/api/modules/server#externalcallid) ; `credential_digest`: `string` ; `authority_digest`: `string`  }>

***

### cancel

▸ **cancel**(`id`): `Promise`\<`null`>

Cancel a command proven unsent as its original verified requester under current
disclosure authority. Local business changes are retained. A possibly sent
command must be reconciled; changed meaning requires fresh admission.

#### Parameters

| Name | Type |
| :- | :- |
| `id` | [`ExternalCallId`](/api/modules/server#externalcallid) |

#### Returns

`Promise`\<`null`>

***

### collectEvidence

▸ **collectEvidence**(`id`, `request`): `Promise`\<`"queued"` | `"consumed"`>

Persist one bounded read-only completion acquisition after automatic recovery
stopped. The original verified requester and current policy remain required.
Reusing a request key never releases another acquisition.
A consumed key reserved a read; it does not imply a response or outcome.

#### Parameters

| Name | Type |
| :- | :- |
| `id` | [`ExternalCallId`](/api/modules/server#externalcallid) |
| `request` | `string` |

#### Returns

`Promise`\<`"queued"` | `"consumed"`>

***

### add

▸ **add**\<`C`>(`name`, `command`, `options`): `Promise`\<[`ExternalCallId`](/api/modules/server#externalcallid)>

#### Type parameters

| Name | Type |
| :- | :- |
| `C` | extends [`CommandHandle`](/api/modules/server#commandhandle)\<`any`> |

#### Parameters

| Name | Type |
| :- | :- |
| `name` | [`CallName`](/api/modules/server#callname) |
| `command` | `C` |
| `options` | `C` extends [`CommandHandle`](/api/modules/server#commandhandle)\<`any`, `"collection"`> ? \{ `target?`: [`CommandTarget`](/api/modules/server#commandtarget)  } : \{ `target`: [`CommandTarget`](/api/modules/server#commandtarget)  } & \{ `args`: [`CommandArgs`](/api/modules/server#commandargs)\<`C`> ; `approval?`: [`ApprovalId`](/api/modules/server#approvalid) ; `release?`: `string`  } |

#### Returns

`Promise`\<[`ExternalCallId`](/api/modules/server#externalcallid)>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.