"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Records = exports.ReadAcceptEnum = void 0;
const recordsAppend_js_1 = require("../funcs/recordsAppend.js");
const recordsCheckTail_js_1 = require("../funcs/recordsCheckTail.js");
const recordsRead_js_1 = require("../funcs/recordsRead.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
var recordsRead_js_2 = require("../funcs/recordsRead.js");
Object.defineProperty(exports, "ReadAcceptEnum", { enumerable: true, get: function () { return recordsRead_js_2.ReadAcceptEnum; } });
class Records extends sdks_js_1.ClientSDK {
    /**
     * Read records.
     */
    async read(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, recordsRead_js_1.recordsRead)(this, request, options));
    }
    /**
     * Append records.
     */
    async append(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, recordsAppend_js_1.recordsAppend)(this, request, options));
    }
    /**
     * Check the tail.
     */
    async checkTail(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, recordsCheckTail_js_1.recordsCheckTail)(this, request, options));
    }
}
exports.Records = Records;
//# sourceMappingURL=records.js.map