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 SafetyClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SafetyClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: SafetyClient.Options); /** * This endpoint will return details for the specified safety events based on the parameters passed in. Results are paginated. * * Rate limit: 5 requests/sec (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.GetSafetyEventsV2Request} request * @param {SafetyClient.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.safety.getSafetyEventsV2() */ getSafetyEventsV2(request?: Samsara.GetSafetyEventsV2Request, requestOptions?: SafetyClient.RequestOptions): core.HttpResponsePromise; private __getSafetyEventsV2; /** * This endpoint will return all safety events associated with your organization based on the parameters passed in. To get core endpoint data, select Read Safety Events & Scores under the Safety & Cameras category when creating or editing an API token. Read Camera Media permissions required to get Safety Event video media via this endpoint. If you include an endTime, the endpoint will return data up until that point. If you do not include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. Results are paginated. * * Rate limit: 5 requests/sec (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.GetSafetyEventsV2StreamRequest} request * @param {SafetyClient.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.safety.getSafetyEventsV2Stream({ * startTime: "startTime" * }) */ getSafetyEventsV2Stream(request: Samsara.GetSafetyEventsV2StreamRequest, requestOptions?: SafetyClient.RequestOptions): core.HttpResponsePromise; private __getSafetyEventsV2Stream; /** * > 🚧 This endpoint is still on our legacy API. * * Fetch the safety score for the driver. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * **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. * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetDriverSafetyScoreRequest} request * @param {SafetyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.safety.v1GetDriverSafetyScore({ * driverId: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ v1GetDriverSafetyScore(request: Samsara.V1GetDriverSafetyScoreRequest, requestOptions?: SafetyClient.RequestOptions): core.HttpResponsePromise; private __v1GetDriverSafetyScore; /** * > 🚧 This endpoint is still on our legacy API. * * Fetch the safety score for the vehicle. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * **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. * * To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetVehicleSafetyScoreRequest} request * @param {SafetyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.safety.v1GetVehicleSafetyScore({ * vehicleId: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ v1GetVehicleSafetyScore(request: Samsara.V1GetVehicleSafetyScoreRequest, requestOptions?: SafetyClient.RequestOptions): core.HttpResponsePromise; private __v1GetVehicleSafetyScore; }