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 ReadingsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ReadingsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ReadingsClient.Options); /** * An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata. * * Related guide: [Readings](https://developers.samsara.com/docs/readings). * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Readings** under the Readings 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.ListReadingsDefinitionsRequest} request * @param {ReadingsClient.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.readings.listReadingsDefinitions() */ listReadingsDefinitions(request?: Samsara.ListReadingsDefinitionsRequest, requestOptions?: ReadingsClient.RequestOptions): core.HttpResponsePromise; private __listReadingsDefinitions; /** * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime. * * Related guide: [Readings](https://developers.samsara.com/docs/readings). * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Readings** under the Readings 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.GetReadingsHistoryRequest} request * @param {ReadingsClient.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.readings.getReadingsHistory({ * readingId: "readingId", * entityType: "entityType" * }) */ getReadingsHistory(request: Samsara.GetReadingsHistoryRequest, requestOptions?: ReadingsClient.RequestOptions): core.HttpResponsePromise; private __getReadingsHistory; /** * An endpoint to get the last value of a reading for a set of entities at the specified time. * * Related guide: [Readings](https://developers.samsara.com/docs/readings). * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Readings** under the Readings 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.GetReadingsSnapshotRequest} request * @param {ReadingsClient.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.readings.getReadingsSnapshot({ * readingIds: "readingIds", * entityType: "entityType" * }) */ getReadingsSnapshot(request: Samsara.GetReadingsSnapshotRequest, requestOptions?: ReadingsClient.RequestOptions): core.HttpResponsePromise; private __getReadingsSnapshot; }