teams
16 procedures defined in packages/api/src/routers/teams.ts.
teams.getMyTeams
Section titled “teams.getMyTeams”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/teams.ts:33 |
No input.
teams.getPendingInvitations
Section titled “teams.getPendingInvitations”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/teams.ts:39 |
No input.
teams.create
Section titled “teams.create”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-create — 10 / 60s | packages/api/src/routers/teams.ts:43 |
Input
z.object({ name: z.string().min(1).max(100), description: z.string().optional(), type: z.enum(TeamType), email: z.string().email().optional(), phone: z.string().optional(), website: z.string().optional(), address: z.string().optional(), city: z.string().optional(), state: z.string().optional(), zipCode: z.string().optional(), licenseNumber: z.string().optional(), })teams.invite
Section titled “teams.invite”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-invite — 10 / 60s | packages/api/src/routers/teams.ts:66 |
Input
z.object({ teamId: z.string(), email: z.string().email(), role: z.enum(['ADMIN', 'MEMBER']), })teams.acceptInvitation
Section titled “teams.acceptInvitation”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-accept — 10 / 60s | packages/api/src/routers/teams.ts:88 |
Input
z.object({ invitationId: z.string() })teams.declineInvitation
Section titled “teams.declineInvitation”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-decline — 10 / 60s | packages/api/src/routers/teams.ts:102 |
Input
z.object({ invitationId: z.string() })teams.cancelInvitation
Section titled “teams.cancelInvitation”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-cancel — 10 / 60s | packages/api/src/routers/teams.ts:109 |
Input
z.object({ invitationId: z.string(), teamId: z.string() })teams.removeMember
Section titled “teams.removeMember”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-remove — 10 / 60s | packages/api/src/routers/teams.ts:123 |
Input
z.object({ teamId: z.string(), memberId: z.string() })teams.update
Section titled “teams.update”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-update — 10 / 60s | packages/api/src/routers/teams.ts:139 |
Input
z.object({ teamId: z.string(), name: z.string().min(1).max(100), description: z.string().optional(), email: z.string().email().optional().or(z.literal('')), phone: z.string().optional(), website: z.string().optional(), licenseNumber: z.string().optional(), })teams.leave
Section titled “teams.leave”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-leave — 10 / 60s | packages/api/src/routers/teams.ts:159 |
Input
z.object({ teamId: z.string() })teams.transferLeadership
Section titled “teams.transferLeadership”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-transfer — 10 / 60s | packages/api/src/routers/teams.ts:174 |
Input
z.object({ teamId: z.string(), targetMemberId: z.string() })teams.updateRole
Section titled “teams.updateRole”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-role — 10 / 60s | packages/api/src/routers/teams.ts:188 |
Input
z.object({ teamId: z.string(), memberId: z.string(), role: z.enum(['ADMIN', 'MEMBER']), })teams.updatePermissions
Section titled “teams.updatePermissions”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-permissions — 10 / 60s | packages/api/src/routers/teams.ts:209 |
Input
z.object({ teamId: z.string(), memberId: z.string(), canManageListings: z.boolean(), canPublishListings: z.boolean(), canManageMembers: z.boolean(), canReassignLeads: z.boolean(), canViewAnalytics: z.boolean(), canManageTeam: z.boolean(), })teams.disband
Section titled “teams.disband”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| mutation | agent (AGENT role required) | team-disband — 5 / 60s | packages/api/src/routers/teams.ts:232 |
Input
z.object({ teamId: z.string() })teams.getMemberDetail
Section titled “teams.getMemberDetail”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/teams.ts:241 |
Input
z.object({ teamId: z.string(), memberId: z.string(), })teams.getAnalytics
Section titled “teams.getAnalytics”| Kind | Auth | Rate limit | Source |
|---|---|---|---|
| query | agent (AGENT role required) | — | packages/api/src/routers/teams.ts:260 |
Input
z.object({ teamId: z.string(), period: z.enum(['7d', '30d', '90d', 'all']).default('30d'), })