agents
5 procedures defined in packages/api/src/routers/agents.ts.
agents.getPublicProfile
Section titled “agents.getPublicProfile”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | public | — | packages/api/src/routers/agents.ts:20 |
Input
z.object({ agentId: z.string() })agents.search
Section titled “agents.search”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | public | — | packages/api/src/routers/agents.ts:27 |
Input
z.object({ mode: z.enum(['name', 'location', 'recent']).default('name'), query: z.string().optional(), city: z.string().optional(), state: z.string().optional(), limit: z.number().max(48).optional(), })agents.getMyProfile
Section titled “agents.getMyProfile”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/agents.ts:42 |
No input.
agents.updateProfile
Section titled “agents.updateProfile”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | agent-profile — 10 / 60s | packages/api/src/routers/agents.ts:46 |
Input
z.object({ displayName: z.string().optional(), headline: z.string().optional(), bio: z.string().optional(), licenseNumber: z.string().optional(), yearsOfExperience: z.number().nullable().optional(), publicEmail: z.string().optional(), publicPhone: z.string().optional(), website: z.string().optional(), isPublic: z.boolean().optional(), enableTourRequests: z.boolean().optional(), showPublicPhone: z.boolean().optional(), showPublicEmail: z.boolean().optional(), settings: z.record(z.string(), z.unknown()).nullable().optional(), serviceAreas: z .array(z.object({ city: z.string(), state: z.string() })) .optional(), })agents.becomeAgent
Section titled “agents.becomeAgent”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | become-agent — 5 / 60s | packages/api/src/routers/agents.ts:73 |
Input
z.object({ displayName: z.string().optional(), headline: z.string().optional(), bio: z.string().optional(), specializations: z.array(z.string()).optional(), languages: z.array(z.string()).optional(), licenseNumber: z.string().optional(), isPublic: z.boolean().optional(), })