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

    Interface TimeRange

    Time range parameters for filtering operations by time period.

    Used in various SDK methods to specify date/time ranges for queries, analytics, and data filtering operations. Times are specified as Unix timestamps.

    const lastWeek: TimeRange = {
    from: Date.now() - (7 * 24 * 60 * 60 * 1000), // 7 days ago
    to: Date.now()
    };

    const permissions = await vana.permissions.getUserPermissions({
    timeRange: lastWeek
    });
    interface TimeRange {
        from?: number;
        to?: number;
    }
    Index

    Properties

    Properties

    from?: number

    Start time (Unix timestamp)

    to?: number

    End time (Unix timestamp)