Vana SDK - v2.2.2
    Preparing search index...

    Interface ServerFilesAndPermissionTypedData

    EIP-712 typed data for server files and permissions messages

    interface ServerFilesAndPermissionTypedData {
        domain: PermissionGrantDomain;
        types: Record<string, { name: string; type: string }[]>;
        primaryType: string;
        message: {
            nonce: bigint;
            granteeId: bigint;
            grant: string;
            fileUrls: string[];
            schemaIds: bigint[];
            serverAddress: `0x${string}`;
            serverUrl: string;
            serverPublicKey: string;
            filePermissions: Permission[][];
        };
    }

    Hierarchy (View Summary)

    Index

    Properties

    EIP-712 domain

    types: Record<string, { name: string; type: string }[]>

    EIP-712 types

    primaryType: string

    Primary type

    message: {
        nonce: bigint;
        granteeId: bigint;
        grant: string;
        fileUrls: string[];
        schemaIds: bigint[];
        serverAddress: `0x${string}`;
        serverUrl: string;
        serverPublicKey: string;
        filePermissions: Permission[][];
    }

    Message data structure

    Type Declaration

    • nonce: bigint

      User nonce

    • granteeId: bigint

      Grantee ID

    • grant: string

      Grant URL

    • fileUrls: string[]

      File URLs

    • schemaIds: bigint[]

      Schema IDs for each file - use 0 for files without schema validation

    • serverAddress: `0x${string}`

      Server address

    • serverUrl: string

      Server URL

    • serverPublicKey: string

      Server public key

    • filePermissions: Permission[][]

      File permissions array - permissions for each file