import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import type * as Samsara from "../../../index.js"; export declare namespace MessagesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class MessagesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: MessagesClient.Options); /** * > 🚧 This endpoint is still on our legacy API. * * Get all messages. * * Rate limit: 100 requests/min (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 Messages** under the Driver Workflow category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetMessagesRequest} request * @param {MessagesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.messages.v1GetMessages() */ v1GetMessages(request?: Samsara.V1GetMessagesRequest, requestOptions?: MessagesClient.RequestOptions): core.HttpResponsePromise; private __v1GetMessages; /** * > 🚧 This endpoint is still on our legacy API. * * Send a message to a list of driver ids. * * **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 **Write Messages** under the Driver Workflow category when creating or editing an API token. Learn More. * * @param {Samsara.InlineObject2} request * @param {MessagesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.messages.v1CreateMessages({ * driverIds: [111, 222, 333], * text: "This is a message." * }) */ v1CreateMessages(request: Samsara.InlineObject2, requestOptions?: MessagesClient.RequestOptions): core.HttpResponsePromise; private __v1CreateMessages; }