interface ProfileData {
    actions: {
        makeWebRequest: {
            format: Profiles.ActionWebRequestFormat;
            url: string;
            value: string;
        }[];
        playAnimation: {
            animationUuid?: string;
            colors: string[];
            duration?: number;
            face: number;
            fade?: number;
            intensity?: number;
            loopCount: number;
        }[];
        playAudioClip: {
            clipUuid?: string;
        }[];
        speakText: {
            pitch: number;
            rate: number;
            text: string;
        }[];
    };
    brightness: number;
    colorway: "unknown" | "onyxBlack" | "hematiteGrey" | "midnightGalaxy" | "auroraSky" | "clear" | "custom";
    conditions: {
        battery: {
            flags: ("ok" | "low" | "charging" | "done" | "badCharging" | "error")[];
            recheckAfter: number;
        }[];
        connection: {
            flags: ("connected" | "disconnected")[];
        }[];
        helloGoodbye: {
            flags: ("hello" | "goodbye")[];
        }[];
        idle: {
            period: number;
        }[];
        rolled: {
            faces: number[];
        }[];
        rolling: {
            recheckAfter: number;
        }[];
    };
    creationDate: number;
    description: string;
    dieType: "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge";
    lastModified: number;
    name: string;
    rules: {
        actions: {
            index: number;
            type: "playAnimation" | "playAudioClip" | "makeWebRequest" | "speakText";
        }[];
        condition: {
            index: number;
            type: "handling" | "rolling" | "crooked" | "helloGoodbye" | "idle" | "connection" | "battery" | "rolled";
        };
    }[];
    uuid: string;
}

Hierarchy (view full)

Properties

actions: {
    makeWebRequest: {
        format: Profiles.ActionWebRequestFormat;
        url: string;
        value: string;
    }[];
    playAnimation: {
        animationUuid?: string;
        colors: string[];
        duration?: number;
        face: number;
        fade?: number;
        intensity?: number;
        loopCount: number;
    }[];
    playAudioClip: {
        clipUuid?: string;
    }[];
    speakText: {
        pitch: number;
        rate: number;
        text: string;
    }[];
}

Type declaration

  • makeWebRequest: {
        format: Profiles.ActionWebRequestFormat;
        url: string;
        value: string;
    }[]
  • playAnimation: {
        animationUuid?: string;
        colors: string[];
        duration?: number;
        face: number;
        fade?: number;
        intensity?: number;
        loopCount: number;
    }[]
  • playAudioClip: {
        clipUuid?: string;
    }[]
  • speakText: {
        pitch: number;
        rate: number;
        text: string;
    }[]
brightness: number
colorway: "unknown" | "onyxBlack" | "hematiteGrey" | "midnightGalaxy" | "auroraSky" | "clear" | "custom"
conditions: {
    battery: {
        flags: ("ok" | "low" | "charging" | "done" | "badCharging" | "error")[];
        recheckAfter: number;
    }[];
    connection: {
        flags: ("connected" | "disconnected")[];
    }[];
    helloGoodbye: {
        flags: ("hello" | "goodbye")[];
    }[];
    idle: {
        period: number;
    }[];
    rolled: {
        faces: number[];
    }[];
    rolling: {
        recheckAfter: number;
    }[];
}

Type declaration

  • battery: {
        flags: ("ok" | "low" | "charging" | "done" | "badCharging" | "error")[];
        recheckAfter: number;
    }[]
  • connection: {
        flags: ("connected" | "disconnected")[];
    }[]
  • helloGoodbye: {
        flags: ("hello" | "goodbye")[];
    }[]
  • idle: {
        period: number;
    }[]
  • rolled: {
        faces: number[];
    }[]
  • rolling: {
        recheckAfter: number;
    }[]
creationDate: number
description: string
dieType: "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge"
lastModified: number
name: string
rules: {
    actions: {
        index: number;
        type: "playAnimation" | "playAudioClip" | "makeWebRequest" | "speakText";
    }[];
    condition: {
        index: number;
        type: "handling" | "rolling" | "crooked" | "helloGoodbye" | "idle" | "connection" | "battery" | "rolled";
    };
}[]

Type declaration

  • actions: {
        index: number;
        type: "playAnimation" | "playAudioClip" | "makeWebRequest" | "speakText";
    }[]
  • condition: {
        index: number;
        type: "handling" | "rolling" | "crooked" | "helloGoodbye" | "idle" | "connection" | "battery" | "rolled";
    }
    • index: number
    • type: "handling" | "rolling" | "crooked" | "helloGoodbye" | "idle" | "connection" | "battery" | "rolled"
uuid: string