/** * Routing-shaped types — `assignTo` shapes the SDK accepts and the * router-side reference interfaces the Python server implements. * * Mirrors `awaithumans/types/routing.py`. The TS SDK doesn't run a * router itself; these interfaces are exported so adapter authors and * documentation can reference the same shape the server uses. */ import type { JsonSchema7Type } from "zod-to-json-schema"; export type AssignTo = string | string[] | { pool: string; } | { role: string; } | { role: string; accessLevel: string; } | { userId: string; } | { marketplace: true; }; export interface Router { resolve(assignTo: AssignTo, context: RouteContext): Promise; } export interface RouteContext { task: string; payload: unknown; payloadSchema: JsonSchema7Type; } export interface Assignment { assignees: HumanIdentity[]; mode: "first_claim" | "all"; } export interface HumanIdentity { id: string; email: string; displayName?: string; roles?: string[]; accessLevel?: string; } //# sourceMappingURL=routing.d.ts.map