import type * as Whop from "../../../../index.js"; /** * @example * { * account_id: "account_id" * } */ export interface ListTeamMembersRequest { /** Account ID, prefixed `biz_`. */ account_id: string; /** Only return members with this status: `joined` (accepted members) or `pending` (pending invites). Both are returned by default. */ status?: Whop.ListTeamMembersRequestStatus; /** Only return the membership for this user ID, prefixed `user_`. */ user_id?: string; /** Only return members with this role. `custom` matches members on a dashboard-managed custom role. */ role?: Whop.ListTeamMembersRequestRole; /** Only return members whose name or username contains this text, and invites whose email contains it. */ query?: string; /** Only return the direct reports of this team member, prefixed `ausr_`. Pass the account ID, prefixed `biz_`, for the members who report to the business directly. Pending invites are excluded, and the list pages in `created_at` order without moving Partner-role members last. */ reports_to_id?: string; /** Only return members with at least this many direct reports. Pending invites are excluded, and the list pages in `created_at` order without moving Partner-role members last. */ direct_reports_min?: number; /** Only return members with at most this many direct reports; `0` returns the people who manage no one. Pending invites are excluded, and the list pages in `created_at` order without moving Partner-role members last. */ direct_reports_max?: number; /** Only return members added before this ISO 8601 timestamp. */ created_before?: string; /** Only return members added after this ISO 8601 timestamp. */ created_after?: string; /** Field used to sort members. Members with the view-only Partner role are listed after all other members whichever way the list is sorted. */ order?: Whop.ListTeamMembersRequestOrder; /** Sort direction. Defaults to `desc`. */ direction?: Whop.ListTeamMembersRequestDirection; /** Number of results to return from the start of the range. */ first?: number; /** Return results after this cursor. Use `page_info.end_cursor` from the previous response to fetch the next page. */ after?: string; /** Number of results to return from the end of the range. */ last?: number; /** Return results before this cursor. Use `page_info.start_cursor` from the previous response to fetch the previous page. */ before?: string; }