Files
cfw-autumn/shared/api
John Yeo cff3d5b6e9 feat: Add GET /platform/users endpoint for multi-tenancy
Implement paginated endpoint to list users and their organizations created by master org through the platform exchange flow.

## Changes
- Create shared/api/platform/platformModels.ts with Zod schemas for query params and response types
- Implement handleListPlatformUsers handler with pagination support (limit/offset)
- Add expand=organizations query param to fetch up to 100 orgs per user
- Clean org slugs by removing master org prefix in responses
- Create honoPlatformRouter and register it in Hono app at /v1/platform/users
- Export platform types from shared package index
- Apply biome linting fixes to platformRouter.ts (let -> const conversions)

## Features
 Paginated results (limit 1-100, default 10)
 Offset-based pagination matching handleBatchCustomers pattern
 Optional organizations expansion
 Filters by organizations.created_by = ctx.org_id
 Removes master org slug prefix from org responses

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 09:08:59 +01:00
..
2025-10-08 09:16:42 +01:00
2025-10-06 14:16:51 +01:00
2025-10-08 09:16:42 +01:00
2025-10-01 19:50:17 +01:00
2025-10-06 14:16:51 +01:00
2025-10-08 09:16:42 +01:00
2025-10-08 17:06:45 +01:00
2025-10-08 09:16:42 +01:00
2025-10-06 14:16:51 +01:00
2025-10-01 16:17:15 +01:00