// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
export class OverrideCodes extends APIResource {
    /**
     * Fetches a one-time use admin override code for a device. This relies on the
     * **Admin Override** setting being enabled in your device configuration.
     */
    list(deviceId, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/devices/${deviceId}/override_codes`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (OverrideCodes) {
})(OverrideCodes || (OverrideCodes = {}));
//# sourceMappingURL=override-codes.mjs.map