import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Samsara from "../../../index.mjs"; export declare namespace LegacyApIsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class LegacyApIsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: LegacyApIsClient.Options); /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/streamdefects) instead. The endpoint will continue to function as documented.** * * Returns a list of DVIR defects in an organization, filtered by creation time. The maximum time period you can query for is 30 days. * * **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 Defects** under the Maintenance category when creating or editing an API token. Learn More. * * @param {Samsara.GetDvirDefectsRequest} request * @param {LegacyApIsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.legacyApIs.getDvirDefects({ * startTime: "startTime", * endTime: "endTime" * }) */ getDvirDefects(request: Samsara.GetDvirDefectsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getDvirDefects; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdrivervehicleassignments) instead. The endpoint will continue to function as documented.** Get all vehicle assignments for the requested drivers in the requested time range. The only type of assignment supported right now are assignments created through the driver app. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Assignments** under the Assignments 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.GetDriversVehicleAssignmentsRequest} request * @param {LegacyApIsClient.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.legacyApIs.getDriversVehicleAssignments() */ getDriversVehicleAssignments(request?: Samsara.GetDriversVehicleAssignmentsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getDriversVehicleAssignments; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdvirs) instead. The endpoint will continue to function as documented.** * * Returns a list of all DVIRs in an organization. * * **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 DVIRs** under the Maintenance category when creating or editing an API token. Learn More. * * @param {Samsara.GetDvirHistoryRequest} request * @param {LegacyApIsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.legacyApIs.getDvirHistory({ * startTime: "startTime", * endTime: "endTime" * }) */ getDvirHistory(request: Samsara.GetDvirHistoryRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getDvirHistory; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getidlingevents) instead. The endpoint will continue to function as documented.** Get all vehicle idling reports for the requested time duration. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Fuel & Energy** under the Fuel & Energy 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.GetVehicleIdlingReportsRequest} request * @param {LegacyApIsClient.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.legacyApIs.getVehicleIdlingReports({ * startTime: "startTime", * endTime: "endTime" * }) */ getVehicleIdlingReports(request: Samsara.GetVehicleIdlingReportsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getVehicleIdlingReports; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** * * Fetch safety events for the organization in a given time period. * * **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.GetSafetyEventsRequest} request * @param {LegacyApIsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.legacyApIs.getSafetyEvents({ * startTime: "startTime", * endTime: "endTime" * }) */ getSafetyEvents(request: Samsara.GetSafetyEventsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getSafetyEvents; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** * * Get continuous safety events. The safety activity event feed offers a change-log for safety events. Use this endpoint to subscribe to safety event changes. See documentation below for all supported change-log types. * * | ActivityType | Description | * | ----------- | ----------- | * | CreateSafetyEventActivityType | a new safety event is processed by Samsara | * | BehaviorLabelActivityType | a label is added or removed from a safety event | * | CoachingStateActivityType | a safety event coaching state is updated | * * 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.GetSafetyActivityEventFeedRequest} request * @param {LegacyApIsClient.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.legacyApIs.getSafetyActivityEventFeed() */ getSafetyActivityEventFeed(request?: Samsara.GetSafetyActivityEventFeedRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getSafetyActivityEventFeed; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getdrivervehicleassignments) instead. The endpoint will continue to function as documented.** Get all driver assignments for the requested vehicles in the requested time range. The only type of assignment supported right now are assignments created through the driver app. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Assignments** under the Assignments 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.GetVehiclesDriverAssignmentsRequest} request * @param {LegacyApIsClient.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.legacyApIs.getVehiclesDriverAssignments() */ getVehiclesDriverAssignments(request?: Samsara.GetVehiclesDriverAssignmentsRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __getVehiclesDriverAssignments; /** * **Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.** > 🚧 This endpoint is still on our legacy API. * * Fetch harsh event details for a vehicle. * * **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.V1GetVehicleHarshEventRequest} request * @param {LegacyApIsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.legacyApIs.v1GetVehicleHarshEvent({ * vehicleId: 1000000, * timestamp: 1000000 * }) */ v1GetVehicleHarshEvent(request: Samsara.V1GetVehicleHarshEventRequest, requestOptions?: LegacyApIsClient.RequestOptions): core.HttpResponsePromise; private __v1GetVehicleHarshEvent; }