UNPKG

@storacha/client

Version:

Client for the storacha.network w3up api

28 lines 756 B
import { Delegation } from '@ucanto/core/delegation'; export * from '@ucanto/core/delegation'; /* c8 ignore start */ /** * @template {import('./types.js').Capabilities} C * @extends {Delegation<C>} */ export class AgentDelegation extends Delegation { /* c8 ignore stop */ /** @type {Record<string, any>} */ #meta; /** * @param {import('./types.js').UCANBlock<C>} root * @param {Map<string, import('./types.js').Block>} [blocks] * @param {Record<string, any>} [meta] */ constructor(root, blocks, meta = {}) { super(root, blocks); this.#meta = meta; } /** * User defined delegation metadata. */ meta() { return this.#meta; } } //# sourceMappingURL=delegation.js.map