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 CoachingClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CoachingClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CoachingClient.Options); /** * This endpoint will return coach assignments for your organization based on the parameters passed in. Results are paginated. * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Coaching** under the Coaching 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.GetDriverCoachAssignmentRequest} request * @param {CoachingClient.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.coaching.getDriverCoachAssignment() */ getDriverCoachAssignment(request?: Samsara.GetDriverCoachAssignmentRequest, requestOptions?: CoachingClient.RequestOptions): core.HttpResponsePromise; private __getDriverCoachAssignment; /** * This endpoint will update an existing or create a new coach-to-driver assignment for your organization based on the parameters passed in. This endpoint should only be used for existing Coach to Driver assignments. In order to remove a driver-coach-assignment for a given driver, set coachId to null * * Rate limit: 10 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Write Coaching** under the Coaching 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.PutDriverCoachAssignmentRequest} request * @param {CoachingClient.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.coaching.putDriverCoachAssignment({ * driverId: "driverId" * }) */ putDriverCoachAssignment(request: Samsara.PutDriverCoachAssignmentRequest, requestOptions?: CoachingClient.RequestOptions): core.HttpResponsePromise; private __putDriverCoachAssignment; /** * This endpoint will return coaching sessions for your organization based on the time parameters passed in. Results are paginated by sessions. If you include an endTime, the endpoint will return data up until that point. If you don’t include an endTime, you can continue to poll the API real-time with the pagination cursor that gets returned on every call. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Coaching** under the Coaching 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.GetCoachingSessionsRequest} request * @param {CoachingClient.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.coaching.getCoachingSessions({ * startTime: "2024-01-15T09:30:00Z" * }) */ getCoachingSessions(request: Samsara.GetCoachingSessionsRequest, requestOptions?: CoachingClient.RequestOptions): core.HttpResponsePromise; private __getCoachingSessions; }