@nexartis/homeport-sdk - v1.0.0
    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;
        revocable?: boolean;
    }
    Index

    Properties

    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).

    revocable?: boolean

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