@nexartis/homeport-sdk - v1.2.16
    Preparing search index...

    Interface DelegationGrantRequest

    Parameters for delegation.grant — issue a scoped delegation.

    interface DelegationGrantRequest {
        action_id?: string;
        expires_at: number;
        granted_by_did: string;
        granted_by_proof_hash: string;
        granted_scope: string[];
        granted_to_did: string;
        parent_delegation_id?: string | null;
        proof: DelegationGrantProof;
        revocable?: boolean;
    }
    Index
    action_id?: string

    Action ID the grant authorizes (defaults to 'delegated' server-side).

    expires_at: number

    Unix seconds at which the grant expires.

    granted_by_did: string

    DID issuing the grant (grantedByDid).

    granted_by_proof_hash: string

    SHA-256 hex of the WebAuthn authenticatorData||clientDataJSON that authorized the grant.

    granted_scope: string[]

    Capability classes / tool IDs the delegate may exercise.

    granted_to_did: string

    DID receiving the grant (grantedToDid).

    parent_delegation_id?: string | null

    If this grant is a child of another grant, the parent delegation ID (enables chain-narrowing).

    PUH proof envelope (WC-P0-04). Required — the Homeport server verifies proof.signature and re-derives granted_by_proof_hash from the canonical envelope before any grant write. The SDK validates presence and shape client-side and fails closed before the POST.

    revocable?: boolean

    Whether this grant may be revoked. Defaults to true when omitted.