import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace AuthorizedUsersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class AuthorizedUsersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AuthorizedUsersClient.Options); /** * Lists the authorized users on an account's team. * * Required permissions: * - `company:authorized_user:read` * - `member:email:read` * * @param {Whop.ListAuthorizedUsersRequest} request * @param {AuthorizedUsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.authorizedUsers.list({ * first: 42, * last: 42, * user_id: "user_xxxxxxxxxxxxx", * created_before: "2023-12-01T05:00:00Z", * created_after: "2023-12-01T05:00:00Z", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ list(request?: Whop.ListAuthorizedUsersRequest, requestOptions?: AuthorizedUsersClient.RequestOptions): Promise>; /** * Adds a user to an account's team as an authorized user with the given role. * * Required permissions: * - `authorized_user:create` * - `member:email:read` * * @param {Whop.CreateAuthorizedUsersRequest} request * @param {AuthorizedUsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.authorizedUsers.create({ * account_id: "biz_xxxxxxxxxxxxxx", * role: "owner", * user_id: "user_xxxxxxxxxxxxx" * }) */ create(request: Whop.CreateAuthorizedUsersRequest, requestOptions?: AuthorizedUsersClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing authorized user. * * Required permissions: * - `company:authorized_user:read` * - `member:email:read` * * @param {Whop.RetrieveAuthorizedUsersRequest} request * @param {AuthorizedUsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.authorizedUsers.retrieve({ * id: "ausr_xxxxxxxxxxxxx" * }) */ retrieve(request: Whop.RetrieveAuthorizedUsersRequest, requestOptions?: AuthorizedUsersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Removes an authorized user from an account's team. * * Required permissions: * - `authorized_user:delete` * * @param {Whop.DeleteAuthorizedUsersRequest} request * @param {AuthorizedUsersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.authorizedUsers.delete({ * id: "ausr_xxxxxxxxxxxxx", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ delete(request: Whop.DeleteAuthorizedUsersRequest, requestOptions?: AuthorizedUsersClient.RequestOptions): core.HttpResponsePromise; private __delete; }