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.
Properties
Section titled “Properties”claims
Section titled “claims”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.
params?
Section titled “params?”
optionalparams?:Record<string,unknown>
Defined in: packages/server/src/circuits/compile.ts:33
Deployment-supplied runtime params, handed to rowFilter.customPredicate as its second argument.
scope?
Section titled “scope?”
optionalscope?: readonlyPredicateValue[]
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
Section titled “shapeKey”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.