// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
export class ActiveSessions extends 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);
    }
}
(function (ActiveSessions) {
})(ActiveSessions || (ActiveSessions = {}));
//# sourceMappingURL=active-sessions.mjs.map