Vana SDK - v0.1.0
    Preparing search index...

    Interface EncryptedPermissionParams

    Permission parameters with required public key for encrypted uploads.

    This type extends PermissionParams and makes publicKey required, ensuring compile-time safety when permissions are used with encryption.

    interface EncryptedPermissionParams {
        grantee: `0x${string}`;
        operation: string;
        parameters: Record<string, unknown>;
        nonce?: bigint;
        expiresAt?: number;
        publicKey: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    grantee: `0x${string}`

    The address of the application to grant permission to.

    operation: string

    The operation type (e.g., "llm_inference").

    parameters: Record<string, unknown>

    Additional parameters for the permission.

    nonce?: bigint

    Optional nonce for the permission.

    expiresAt?: number

    Optional expiration timestamp.

    publicKey: string

    Public key of the recipient to encrypt the data key for.