Optional options: { Protected _agentProtected _serviceProtected _invocationProtected Add a proof to the agent. Proofs are delegations with an audience matching the agent DID.
Add a space from a received proof.
Create a delegation to the passed audience for the given abilities with the current space as the resource.
Optional options: Omit<UCANOptions, "audience"> & { Create a new space with a given name.
Get delegations created by the agent for others.
Optional caps: Capability<Ability, `${string}:${string}`, any>[]Capabilities to filter by. Empty or undefined caps with return all the delegations.
Get a receipt for an executed task by its CID.
Get all the proofs matching the capabilities.
Proofs are delegations with an audience matching the agent DID.
Optional caps: Capability<Ability, `${string}:${string}`, any>[]Capabilities to filter by. Empty or undefined caps with return all the proofs.
Removes association of a content CID with the space. Optionally, also removes association of CAR shards with space.
⚠️ If shards option is true all shards will be deleted even if there is another upload(s) that
reference same shards, which in turn could corrupt those uploads.
Optional options: { Revoke a delegation by CID.
If the delegation was issued by this agent (and therefore is stored in the
delegation store) you can just pass the CID. If not, or if the current agent's
delegation store no longer contains the delegation, you MUST pass a chain of
proofs that proves your authority to revoke this delegation as options.proofs.
Optional options: { Uploads a CAR file to the service.
The difference between this function and capability.store.add is that the
CAR file is automatically sharded and an "upload" is registered, linking
the individual shards (see capability.upload.add).
Use the onShardStored callback to obtain the CIDs of the CAR file shards.
CAR file.
Optional options: UploadOptions = {}Uploads a directory of files to the service and returns the root data CID for the generated DAG. All files are added to a container directory, with paths in file names preserved.
File data.
Optional options: UploadDirectoryOptions = {}Uploads a file to the service and returns the root data CID for the generated DAG.
File data.
Optional options: UploadOptions = {}Generated using TypeDoc
The current user agent (this device).