import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Samsara from "../../../index.js"; export declare namespace DriverQrCodesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class DriverQrCodesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: DriverQrCodesClient.Options); /** * Get details for requested driver(s) QR code, used for driver trip assignment. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GetDriversQrCodesRequest} request * @param {DriverQrCodesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.driverQrCodes.getDriversQrCodes() */ getDriversQrCodes(request?: Samsara.GetDriversQrCodesRequest, requestOptions?: DriverQrCodesClient.RequestOptions): core.HttpResponsePromise; private __getDriversQrCodes; /** * Assign a new QR code for the requested driver. Return error if an active QR code already exists. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.DriverQrCodesCreateDriverQrCodeRequestBody} request * @param {DriverQrCodesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.driverQrCodes.createDriverQrCode({ * driverId: 494123 * }) */ createDriverQrCode(request: Samsara.DriverQrCodesCreateDriverQrCodeRequestBody, requestOptions?: DriverQrCodesClient.RequestOptions): core.HttpResponsePromise; private __createDriverQrCode; /** * Revoke requested driver's currently active QR code. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.DriverQrCodesDeleteDriverQrCodeRequestBody} request * @param {DriverQrCodesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.driverQrCodes.deleteDriverQrCode({ * driverId: 494123 * }) */ deleteDriverQrCode(request: Samsara.DriverQrCodesDeleteDriverQrCodeRequestBody, requestOptions?: DriverQrCodesClient.RequestOptions): core.HttpResponsePromise; private __deleteDriverQrCode; }