import { i as __exportAll } from "./tool-display-B7qTeoCS.js";

//#region src/users/types.ts
var types_exports = /* @__PURE__ */ __exportAll({ mapRoleToScopes: () => mapRoleToScopes });
/**
* Maps a UserRole to the set of gateway scopes it grants.
*
* - admin: full operator access including admin, approvals, and pairing
* - org_admin: read + write access (manage org resources)
* - user: read + write access (interact with assigned agents)
*/
function mapRoleToScopes(role) {
	switch (role) {
		case "admin": return [
			"operator.admin",
			"operator.read",
			"operator.write",
			"operator.approvals",
			"operator.pairing"
		];
		case "org_admin": return ["operator.read", "operator.write"];
		case "user": return ["operator.read", "operator.write"];
	}
}

//#endregion
export { types_exports as n, mapRoleToScopes as t };