live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/gate


@orangecheck/gate / GateDecision

Interface: GateDecision

Defined in: types.ts:113

Properties

PropertyTypeDescriptionDefined in
<a id="property-check"></a> check?CheckResultUnderlying SDK result, present when a lookup happened.types.ts:126
<a id="property-ok"></a> okbooleanTrue iff the request should be allowed through.types.ts:115
<a id="property-reason"></a> reason| "ok" | "no_subject" | "below_threshold" | "invalid_proof" | "not_found" | "lookup_error" | "fail_open"Why the gate blocked (or allowed).types.ts:117
<a id="property-subject"></a> subject?stringThe subject value the gate resolved from the request.types.ts:128
<a id="property-subjectkind"></a> subjectKind?"address" | "attestation_id" | "identity"The kind of subject: 'address''attestation_id'