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 SafetyScoresClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SafetyScoresClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: SafetyScoresClient.Options); /** * Get safety scores and overall risk factors for drivers. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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.GetDriverSafetyScoresRequest} request * @param {SafetyScoresClient.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.safetyScores.getDriverSafetyScores({ * endTime: "endTime", * startTime: "startTime" * }) */ getDriverSafetyScores(request: Samsara.GetDriverSafetyScoresRequest, requestOptions?: SafetyScoresClient.RequestOptions): core.HttpResponsePromise; private __getDriverSafetyScores; /** * Get a combined safety score and risk factors for a set of tags. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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.GetTagGroupSafetyScoresRequest} request * @param {SafetyScoresClient.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.safetyScores.getTagGroupSafetyScores({ * endTime: "endTime", * startTime: "startTime", * scoreType: "driver" * }) */ getTagGroupSafetyScores(request: Samsara.GetTagGroupSafetyScoresRequest, requestOptions?: SafetyScoresClient.RequestOptions): core.HttpResponsePromise; private __getTagGroupSafetyScores; /** * Get safety scores and overall risk factors for tags. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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.GetTagSafetyScoresRequest} request * @param {SafetyScoresClient.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.safetyScores.getTagSafetyScores({ * endTime: "endTime", * startTime: "startTime", * scoreType: "driver" * }) */ getTagSafetyScores(request: Samsara.GetTagSafetyScoresRequest, requestOptions?: SafetyScoresClient.RequestOptions): core.HttpResponsePromise; private __getTagSafetyScores; /** * Get safety scores and overall risk factors for vehicles. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras 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.GetVehicleSafetyScoresRequest} request * @param {SafetyScoresClient.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.safetyScores.getVehicleSafetyScores({ * endTime: "endTime", * startTime: "startTime" * }) */ getVehicleSafetyScores(request: Samsara.GetVehicleSafetyScoresRequest, requestOptions?: SafetyScoresClient.RequestOptions): core.HttpResponsePromise; private __getVehicleSafetyScores; }