"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthV2Client = void 0;
const constants_1 = require("../constants");
class AuthV2Client {
    constructor(client) {
        this.client = client;
    }
    async createSignedAuthAttestation(request) {
        const path = constants_1.PRIVATE_ENDPOINTS.AuthV2CreateSignedAuthAttestation.path;
        const resp = await this.client.post(path, request.body, {
            headers: request.headers,
        });
        return resp.data;
    }
    async createOrgOwner(orgId, email, authBlock) {
        const path = constants_1.PRIVATE_ENDPOINTS.AuthV2CreateOrganizationOwner.path;
        await this.client.post(path, {
            email: email,
            orgId: orgId,
            authBlock: authBlock,
        });
    }
}
exports.AuthV2Client = AuthV2Client;
