User and Admin Services

Call Federation services through the identity that owns the authorization.

User and admin calls share the same Service protocol but use separate identity domains.

const user_services = await federation.user.list_services();
const profile = await federation.user.current();
const result = await federation.user.service("rewrite")
  .action("formal")
  .invoke({ text: "hello" });

const admin_services = await federation.admin.list_services();
const env = await federation.admin.env.list();

Use federation.user.ai for the Federation model catalog and AI execution, and federation.user.payment for payment methods. Admin-only management stays under federation.admin; do not pass administrator credentials through the user domain.