"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeGetChallengeTool = makeGetChallengeTool;
function makeGetChallengeTool(authService) {
    async function getChallenge() {
        const challenge = authService.generateChallenge();
        return {
            challenge,
            message: "Sign this challenge with your passkey and call the `unlock` tool with the assertion data.",
        };
    }
    const getChallengeDefinition = {
        type: "function",
        function: {
            name: "getChallenge",
            description: "Get a challenge string to sign with your passkey. Required before calling `unlock`. Returns a base64url-encoded challenge.",
            parameters: {
                type: "object",
                properties: {},
                required: [],
            },
        },
    };
    return { getChallenge, getChallengeDefinition };
}
//# sourceMappingURL=getChallenge.js.map