export interface Role { roleKey?: string; title?: string; } export interface AssignRoleRequest { memberId: string; roleKey: string; } export interface AssignRoleResponse { roleKey?: string; } export interface UnassignRoleRequest { memberId: string; roleKey: string; } export interface UnassignRoleResponse { roleKey?: string; } export interface GetRolesRequest { memberId: string; } export interface GetRolesResponse { roles?: Role[]; } export interface QueryRolesRequest { /** Query options. */ query?: Query; } export interface Query { /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */ filter?: any; } export interface QueryRolesResponse { /** Map of members that met the query filter criteria. */ rolesByMemberId?: Record; } export interface MemberRole { roles?: Role[]; } export interface PolicyAssignedToContributor { accountId?: string; metaSiteId?: string; policyIds?: string[]; } export interface Empty { } export interface PolicyRemovedFromContributor { accountId?: string; metaSiteId?: string; policyIds?: string[]; } export interface PolicyUpdatedForContributor { accountId?: string; metaSiteId?: string; oldPolicyIds?: string[]; newPolicyIds?: string[]; } export interface AssignRoleResponseNonNullableFields { roleKey: string; } export interface UnassignRoleResponseNonNullableFields { roleKey: string; } interface RoleNonNullableFields { roleKey: string; title: string; } export interface GetRolesResponseNonNullableFields { roles: RoleNonNullableFields[]; } /** @public * @documentationMaturity preview * @requiredField memberId * @requiredField roleKey * @permissionId MEMBERS.MEMBER_ROLES_MANAGE * @applicableIdentity MEMBER * @fqn com.wixpress.members.memberroles.MemberRoles.AssignRole */ export declare function assignRole(memberId: string, roleKey: string): Promise; /** @public * @documentationMaturity preview * @requiredField memberId * @requiredField roleKey * @permissionId MEMBERS.MEMBER_ROLES_MANAGE * @applicableIdentity MEMBER * @fqn com.wixpress.members.memberroles.MemberRoles.UnassignRole */ export declare function unassignRole(memberId: string, roleKey: string): Promise; /** @public * @documentationMaturity preview * @requiredField memberId * @permissionId MEMBERS.ROLES_READ * @applicableIdentity VISITOR * @fqn com.wixpress.members.memberroles.MemberRoles.GetRoles */ export declare function getRoles(memberId: string): Promise; /** @public * @documentationMaturity preview * @permissionId MEMBERS.ROLES_READ * @applicableIdentity VISITOR * @fqn com.wixpress.members.memberroles.MemberRoles.QueryRoles */ export declare function queryRoles(options?: QueryRolesOptions): Promise; export interface QueryRolesOptions { /** Query options. */ query?: Query; } export {};