import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { AnonymizeUsersRequest } from "../models/AnonymizeUsersRequest"; import { AnonymizeUsersResponse } from "../models/AnonymizeUsersResponse"; import { PermissionsResponse } from "../models/PermissionsResponse"; import { QuerySortOrder } from "../models/QuerySortOrder"; import { User } from "../models/User"; import { UserCreateRequest } from "../models/UserCreateRequest"; import { UserInvitationResponse } from "../models/UserInvitationResponse"; import { UserInvitationsRequest } from "../models/UserInvitationsRequest"; import { UserInvitationsResponse } from "../models/UserInvitationsResponse"; import { UserResponse } from "../models/UserResponse"; import { UsersResponse } from "../models/UsersResponse"; import { UserUpdateRequest } from "../models/UserUpdateRequest"; export declare class UsersApiRequestFactory extends BaseAPIRequestFactory { anonymizeUsers(body: AnonymizeUsersRequest, _options?: Configuration): Promise; createUser(body: UserCreateRequest, _options?: Configuration): Promise; deleteUserInvitations(userId: string, _options?: Configuration): Promise; disableUser(userId: string, _options?: Configuration): Promise; getCurrentUser(_options?: Configuration): Promise; getInvitation(userInvitationUuid: string, _options?: Configuration): Promise; getUser(userId: string, _options?: Configuration): Promise; listUserOrganizations(userId: string, _options?: Configuration): Promise; listUserPermissions(userId: string, _options?: Configuration): Promise; listUsers(pageSize?: number, pageNumber?: number, sort?: string, sortDir?: QuerySortOrder, filter?: string, filterStatus?: string, _options?: Configuration): Promise; sendInvitations(body: UserInvitationsRequest, _options?: Configuration): Promise; updateCurrentUser(body: UserUpdateRequest, _options?: Configuration): Promise; updateUser(userId: string, body: UserUpdateRequest, _options?: Configuration): Promise; } export declare class UsersApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to anonymizeUsers * @throws ApiException if the response code was not in [200, 299] */ anonymizeUsers(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createUser * @throws ApiException if the response code was not in [200, 299] */ createUser(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteUserInvitations * @throws ApiException if the response code was not in [200, 299] */ deleteUserInvitations(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to disableUser * @throws ApiException if the response code was not in [200, 299] */ disableUser(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCurrentUser * @throws ApiException if the response code was not in [200, 299] */ getCurrentUser(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getInvitation * @throws ApiException if the response code was not in [200, 299] */ getInvitation(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getUser * @throws ApiException if the response code was not in [200, 299] */ getUser(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listUserOrganizations * @throws ApiException if the response code was not in [200, 299] */ listUserOrganizations(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listUserPermissions * @throws ApiException if the response code was not in [200, 299] */ listUserPermissions(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listUsers * @throws ApiException if the response code was not in [200, 299] */ listUsers(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to sendInvitations * @throws ApiException if the response code was not in [200, 299] */ sendInvitations(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateCurrentUser * @throws ApiException if the response code was not in [200, 299] */ updateCurrentUser(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateUser * @throws ApiException if the response code was not in [200, 299] */ updateUser(response: ResponseContext): Promise; } export interface UsersApiAnonymizeUsersRequest { /** * @type AnonymizeUsersRequest */ body: AnonymizeUsersRequest; } export interface UsersApiCreateUserRequest { /** * @type UserCreateRequest */ body: UserCreateRequest; } export interface UsersApiDeleteUserInvitationsRequest { /** * The UUID of the user whose pending invitations should be canceled. * @type string */ userId: string; } export interface UsersApiDisableUserRequest { /** * The ID of the user. * @type string */ userId: string; } export interface UsersApiGetInvitationRequest { /** * The UUID of the user invitation. * @type string */ userInvitationUuid: string; } export interface UsersApiGetUserRequest { /** * The ID of the user. * @type string */ userId: string; } export interface UsersApiListUserOrganizationsRequest { /** * The ID of the user. * @type string */ userId: string; } export interface UsersApiListUserPermissionsRequest { /** * The ID of the user. * @type string */ userId: string; } export interface UsersApiListUsersRequest { /** * Size for a given page. The maximum allowed value is 100. * @type number */ pageSize?: number; /** * Specific page number to return. * @type number */ pageNumber?: number; /** * User attribute to order results by. Sort order is ascending by default. * Sort order is descending if the field * is prefixed by a negative sign, for example `sort=-name`. Options: `name`, * `modified_at`, `user_count`. * @type string */ sort?: string; /** * Direction of sort. Options: `asc`, `desc`. * @type QuerySortOrder */ sortDir?: QuerySortOrder; /** * Filter all users by the given string. Defaults to no filtering. * @type string */ filter?: string; /** * Filter on status attribute. * Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. * Defaults to no filtering. * @type string */ filterStatus?: string; } export interface UsersApiSendInvitationsRequest { /** * @type UserInvitationsRequest */ body: UserInvitationsRequest; } export interface UsersApiUpdateCurrentUserRequest { /** * @type UserUpdateRequest */ body: UserUpdateRequest; } export interface UsersApiUpdateUserRequest { /** * The ID of the user. * @type string */ userId: string; /** * @type UserUpdateRequest */ body: UserUpdateRequest; } export declare class UsersApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: UsersApiRequestFactory, responseProcessor?: UsersApiResponseProcessor); /** * Anonymize a list of users, removing their personal data. This operation is irreversible. * Requires the `user_access_manage` permission. * @param param The request object */ anonymizeUsers(param: UsersApiAnonymizeUsersRequest, options?: Configuration): Promise; /** * Create a user for your organization. * @param param The request object */ createUser(param: UsersApiCreateUserRequest, options?: Configuration): Promise; /** * Cancel all pending invitations for a specified user. * Requires the `user_access_invite` permission. * @param param The request object */ deleteUserInvitations(param: UsersApiDeleteUserInvitationsRequest, options?: Configuration): Promise; /** * Disable a user. Can only be used with an application key belonging * to an administrator user. * @param param The request object */ disableUser(param: UsersApiDisableUserRequest, options?: Configuration): Promise; /** * Get the user associated with the current authentication context. * The response includes the user's profile attributes (name, email, handle, * status, MFA state), along with related resources: the user's organization, * assigned roles with their granted permissions, and team-scoped roles. * No additional permissions are required beyond valid authentication. * @param param The request object */ getCurrentUser(options?: Configuration): Promise; /** * Returns a single user invitation by its UUID. * @param param The request object */ getInvitation(param: UsersApiGetInvitationRequest, options?: Configuration): Promise; /** * Get a user in the organization specified by the user’s `user_id`. * @param param The request object */ getUser(param: UsersApiGetUserRequest, options?: Configuration): Promise; /** * Get a user organization. Returns the user information and all organizations * joined by this user. * @param param The request object */ listUserOrganizations(param: UsersApiListUserOrganizationsRequest, options?: Configuration): Promise; /** * Get a user permission set. Returns a list of the user’s permissions * granted by the associated user's roles. * @param param The request object */ listUserPermissions(param: UsersApiListUserPermissionsRequest, options?: Configuration): Promise; /** * Get the list of all users in the organization. This list includes * all users even if they are deactivated or unverified. * @param param The request object */ listUsers(param?: UsersApiListUsersRequest, options?: Configuration): Promise; /** * Provide a paginated version of listUsers returning a generator with all the items. */ listUsersWithPagination(param?: UsersApiListUsersRequest, options?: Configuration): AsyncGenerator; /** * Sends emails to one or more users inviting them to join the organization. * @param param The request object */ sendInvitations(param: UsersApiSendInvitationsRequest, options?: Configuration): Promise; /** * Edit the profile of the currently authenticated user. Updatable fields * include `name`, `title`, `email`, and `disabled` status. The `id` field * in the request body must match the authenticated user's UUID; a mismatch * returns a 422 error. Email address changes are recorded in the audit trail. * Requires the `user_self_profile_write` permission. * @param param The request object */ updateCurrentUser(param: UsersApiUpdateCurrentUserRequest, options?: Configuration): Promise; /** * Edit a user. Can only be used with an application key belonging * to an administrator user. * @param param The request object */ updateUser(param: UsersApiUpdateUserRequest, options?: Configuration): Promise; }