Skip to content

ShapeRequest

Defined in: packages/server/src/circuits/compile.ts:21

What a client asks the control plane for: a declared shape, plus the inputs its tier consumes.

claims: {[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null

Defined in: packages/server/src/circuits/compile.ts:25

Verified claims. The private tier’s only subject input; the shared tier never sees them.


optional params?: Record<string, unknown>

Defined in: packages/server/src/circuits/compile.ts:33

Deployment-supplied runtime params, handed to rowFilter.customPredicate as its second argument.


optional scope?: readonly PredicateValue[]

Defined in: packages/server/src/circuits/compile.ts:31

SHARED TIER — the scope values, positionally matching the shape’s declared scope columns. null is a legal value and compiles to IS NULL, so an absent element and a null one are different things: arity is checked strictly rather than padded.


shapeKey: string

Defined in: packages/server/src/circuits/compile.ts:23

The shape’s unique identity, exactly as declared. Never a table name the client chose.