users
2 procedures defined in packages/api/src/routers/users.ts.
users.getMe
Section titled “users.getMe”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | protected (auth required) | users-get-me — 60 / 60s | packages/api/src/routers/users.ts:11 |
No input.
users.updateProfile
Section titled “users.updateProfile”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | protected (auth required) | users-update-profile — 10 / 60s | packages/api/src/routers/users.ts:28 |
Input
z.object({ name: z.string().min(1).max(100).optional(), firstName: z .string() .min(1) .max(50) .regex(/^[a-zA-ZÀ-ÿ\s'-]+$/) .optional(), lastName: z .string() .min(1) .max(50) .regex(/^[a-zA-ZÀ-ÿ\s'-]+$/) .optional(), phone: z .string() .regex(/^[\d\s()+-]{6,20}$/) .nullable() .optional(), image: z .union([ z.string().regex(/^avatars\/[A-Za-z0-9_-]+\/[A-Za-z0-9._-]+$/), z.string().url().max(2048), ]) .nullable() .optional(), })