import { UserSession } from "@esri/arcgis-rest-auth" ; import { updateUserMemberships , IUpdateGroupUsersResult , } from "@esri/arcgis-rest-portal" ; export param { string } id param { string [ ] } users param { ( "member" | "admin" ) } newMemberType param { UserSession } authentication return { * } export async function updateUserMembership ( id , users , newMemberType , authentication ) { return updateUserMemberships ( { id , users , newMemberType , authentication , } ) ; }