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 UsersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class UsersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: UsersClient.Options); /** * Returns a list of all user roles 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 Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.ListUserRolesRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.listUserRoles() */ listUserRoles(request?: Samsara.ListUserRolesRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __listUserRoles; /** * Returns a list of all users in an organization. Users that have expired access will not be returned. * * **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 Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.ListUsersRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.listUsers() */ listUsers(request?: Samsara.ListUsersRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __listUsers; /** * Add a user to the 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 **Write Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.CreateUserRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.createUser({ * authType: "default", * email: "user@company.com", * name: "Bob Smith", * roles: [{ * roleId: "8a9371af-82d1-4158-bf91-4ecc8d3a114c" * }] * }) */ createUser(request: Samsara.CreateUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __createUser; /** * Get a specific user's information. Users that have expired access will not be returned. * * **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 Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.GetUserRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.getUser({ * id: "id" * }) */ getUser(request: Samsara.GetUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __getUser; /** * Delete the given user. * * **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 Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.DeleteUsersRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.delete({ * id: "id" * }) */ delete(request: Samsara.DeleteUsersRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update a specific user's information. * * **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 Users** under the Setup & Administration category when creating or editing an API token. Learn More. * * @param {Samsara.UpdateUserRequest} request * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.users.updateUser({ * id: "id" * }) */ updateUser(request: Samsara.UpdateUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise; private __updateUser; }