// Copyright © 2022-2026 Partium, Inc. DBA Partium import { BasePaginatedRequest } from "../../../models/base-paginated-request"; export declare enum SuborgResolutionMode { ALL = "all", ONLY_EXPLICIT = "onlyExplicit", ONLY_TOP_ACCESSIBLE_LEVEL = "onlyTopAccessibleLevel" } /** * Request for getting organizations. */ export interface GetOrganizationsRequest extends BasePaginatedRequest { /** * Parent organization name. */ parentName?: string; /** * Controls which sub-organizations are included. all (default): all accessible sub-orgs, including those reachable only via parent * organization access (transitive / implicit sub-org access). onlyExplicit: only sub-orgs explicitly assigned in the token, including * when their parent org is also listed. onlyTopAccessibleLevel: sub-orgs only when the user has no access to their parent org (parent * orgs plus top-level sub-orgs for org listings). * (default: all) */ suborgResolutionMode?: SuborgResolutionMode; /** * list of role names (e.g. csa, admin, factoryWorker). When provided, limits the accessible organization set to those where the user has one * of these roles via explicit (non-transitive) assignment. Transitive suborg expansion is controlled separately by `suborgResolutionMode`. */ roles?: string[]; /** * Search query. */ query?: string; }