/** * @example * { * account_id: "biz_xxxxxxxxxxxxxx", * role: "sales_manager", * user_id: "user_xxxxxxxxxxxxxx" * } */ export interface CreateTeamMembersRequest { /** Account ID, prefixed `biz_`. */ account_id: string; /** Email address to invite. Mutually exclusive with `user_id`. If the email already belongs to a Whop account it is treated the same as passing that account's `user_id`; otherwise a pending invite is created for the email. */ email?: string; /** The system role to grant. Custom roles cannot be granted through the API. The Partner role provides view-only access. */ role: CreateTeamMembersRequest.Role; /** The user to add to the team, prefixed `user_`. Mutually exclusive with `email`. */ user_id?: string; } export declare namespace CreateTeamMembersRequest { /** The system role to grant. Custom roles cannot be granted through the API. The Partner role provides view-only access. */ const Role: { readonly Owner: "owner"; readonly Admin: "admin"; readonly Partner: "partner"; readonly SalesManager: "sales_manager"; readonly Moderator: "moderator"; readonly Advertiser: "advertiser"; readonly Workforce: "workforce"; }; type Role = (typeof Role)[keyof typeof Role]; }