import { User } from '../models/User'; import { ChangePasswordRequest } from '../models/ChangePasswordRequest'; import { ChangeEmailRequest } from '../models/ChangeEmailRequest'; import { Recaptcha } from '../models/Recaptcha'; import { AuthMethods } from '../models/AuthMethods'; import { LinkResponse } from '../models/LinkResponse'; import { OrgAssignment } from '../models/OrgAssignment'; import { ListPage } from '../models/ListPage'; import { DevRegionAccess } from '../models/DevRegionAccess'; import { Organization } from '../models/Organization'; import { Team } from '../models/Team'; import { RequiredDeep } from '../models/RequiredDeep'; import { RequestOptions } from '../models/RequestOptions'; declare class CurrentUser { /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * Get the currently authenticatied user * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Get(requestOptions?: RequestOptions): Promise>; /** * Update the currently authenticatied user * * @param user Required fields: Username, FirstName, LastName, Email * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Save(user: User, requestOptions?: RequestOptions): Promise>; /** * Accept the terms and conditions, can only be done once * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ AcceptTerms(requestOptions?: RequestOptions): Promise; /** * Update the current user's password * * @param changePasswordRequest * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ChangePassword(changePasswordRequest: ChangePasswordRequest, requestOptions?: RequestOptions): Promise>; /** * Update the current user's email * * @param changeEmailRequest * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ChangeEmail(changeEmailRequest: ChangeEmailRequest, requestOptions?: RequestOptions): Promise; /** * Send a confirmation code to the current user's email * * @param recaptcha * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ VerifyEmail(recaptcha: Recaptcha, requestOptions?: RequestOptions): Promise; /** * Get a list of oidc auth methods Get a list of oidc auth methods linked to this user (Password, Google or Github) * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListAccounts(requestOptions?: RequestOptions): Promise>; /** * Remove a linked account Remove either Google or Github from an an existing user * * @param name Type of account (Password, Google or Github) * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ RemoveAccount(name: string, requestOptions?: RequestOptions): Promise; /** * Link an account Link your portal account to either Github or Google * * @param name Type of account (Google or Github) * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ LinkAccount(name: string, requestOptions?: RequestOptions): Promise>; /** * * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListOrgTeamInvites(requestOptions?: RequestOptions): Promise>; /** * * * @param id Unique identifier of the portal team * @param orgid Unique identifier of the organization * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ AcceptOrgTeamInvite(id: string, orgid: string, requestOptions?: RequestOptions): Promise; /** * * * @param id Unique identifier of the portal team * @param orgid Unique identifier of the organization * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ DeclineOrgTeamInvite(id: string, orgid: string, requestOptions?: RequestOptions): Promise; /** * * * @param listOptions.search * @param listOptions.page * @param listOptions.pageSize * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListRegions(listOptions?: { search?: string; page?: number; pageSize?: number; }, requestOptions?: RequestOptions): Promise>>; /** * * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListOrgInvites(requestOptions?: RequestOptions): Promise>; /** * * * @param id Unique identifier of the seller organization * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ AcceptOrgInvite(id: string, requestOptions?: RequestOptions): Promise; /** * * * @param id Unique identifier of the seller organization * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ DeclineOrgInvite(id: string, requestOptions?: RequestOptions): Promise; /** * * * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ ListTeamInvites(requestOptions?: RequestOptions): Promise>; /** * * * @param id Unique identifier of the portal team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ AcceptTeamInvite(id: string, requestOptions?: RequestOptions): Promise; /** * * * @param id Unique identifier of the portal team * @param requestOptions.accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ DeclineTeamInvite(id: string, requestOptions?: RequestOptions): Promise; } declare const _default: CurrentUser; export default _default;