import { C as Connection } from './index.js';

class Verification {
    constructor(connection) {
        this.connection = connection;
    }
    async create(request, tokenize) {
        return await this.connection.post("verification/", request, {
            accept: tokenize ? "application/jwt" : "application/json",
        });
    }
    static open(url, token) {
        const connection = Connection.open(url, token);
        return connection && new Verification(connection);
    }
}

export { Verification };
