import type { CollectionProp, GetOrganizationParams, GetSpaceParams, QueryParams } from '../../common-types'; import type { UserProps } from '../../export-types'; import type { OptionalDefaults } from '../wrappers/wrap'; export type UserPlainClientAPI = { /** Fetches all users in a space * * @param params space ID and query parameters * @returns a collection of users * @throws if the request fails or the users are not found * @example * ```javascript * const users = await client.user.getManyForSpace({ * spaceId: '', * query: { * limit: 100, * }, * }); * ``` */ getManyForSpace(params: OptionalDefaults): Promise>; /** * Fetches a user in a space * @param params space ID, user ID, and query parameters * @returns the user * @throws if the request fails or the user is not found * @example * ```javascript * const user = await client.user.getForSpace({ * spaceId: '', * userId: '', * }); * ``` */ getForSpace(params: OptionalDefaults): Promise; /** * Fetches the current user * @param params query parameters * @returns the current user * @throws if the request fails or the user is not found * @example * ```javascript * const user = await client.user.getCurrent(); * ``` */ getCurrent(params?: QueryParams): Promise; /** * Fetches a user in an organization * @param params organization ID, user ID, and query parameters * @returns the user * @throws if the request fails or the user is not found * @example * ```javascript * const user = await client.user.getForOrganization({ * organizationId: '', * userId: '', * }); * ``` */ getForOrganization(params: OptionalDefaults): Promise; /** * Fetches all users in an organization * @param params organization ID and query parameters * @returns a collection of users * @throws if the request fails or the users are not found * @example * ```javascript * const users = await client.user.getManyForOrganization({ * organizationId: '', * query: { * limit: 100, * }, * }); * ``` */ getManyForOrganization(params: OptionalDefaults): Promise>; };