Allow ordering profiles by email address

GraphQL profile ordering rejected EMAIL_ADDRESS because ProfileOrderField
did not expose this enum value in connect and console schemas.

Add EMAIL_ADDRESS to MembershipProfileOrderField and its validation list
so order input coercion accepts the value consistently. Extend
MembershipProfile cursor key encoding to support email ordering and avoid
runtime panics during pagination.

Update the MCP profile order enum to keep API surface definitions aligned
with the same ordering capability.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-05-28 18:50:43 +00:00
committed by Bryan Frimin
parent 29d8181b2c
commit 8b6e9e420a
5 changed files with 14 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ components:
enum:
- CREATED_AT
- FULL_NAME
- EMAIL_ADDRESS
- KIND
go.probo.inc/mcpgen/type: go.probo.inc/probo/pkg/coredata.MembershipProfileOrderField