"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActiveSessions = void 0;
const resource_1 = require("cloudflare/resource");
class ActiveSessions extends resource_1.APIResource {
    /**
     * Get active sessions for a single user.
     */
    list(identifier, id, options) {
        return this._client.get(`/accounts/${identifier}/access/users/${id}/active_sessions`, options)._thenUnwrap((obj) => obj.result);
    }
    /**
     * Get an active session for a single user.
     */
    get(identifier, id, nonce, options) {
        return this._client.get(`/accounts/${identifier}/access/users/${id}/active_sessions/${nonce}`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.ActiveSessions = ActiveSessions;
(function (ActiveSessions) {
})(ActiveSessions = exports.ActiveSessions || (exports.ActiveSessions = {}));
//# sourceMappingURL=active-sessions.js.map