getFideEntityTypeSpecByCode
Look up the definition for a single Fide entity type by hexadecimal code.
Node Runtime Required
Parameters
Returns
Prop
Type
import { getFideEntityTypeSpecByCode } from '@fide-work/context-protocol';
const result = getFideEntityTypeSpecByCode('10');Type Definitions
type FideEntityTypeCode
"00" | "01" | "02" | "10" | "11" | "12" | "20" | "21" | "22" | "30" | "31" | "40" | "41" | "42" | "43" | "a0" | "a1" | "a2" | "a3" | "b1" | "b2" | "b3" | "b4" | "b0" | "b5" | "c0" | "c1"type FideEntityTypeSpec
FideEntityTypeSpecProperties
Prop
Type
type Statement7 properties
Complete statement object with all required fields **Important**: Both Fide IDs and reference identifiers are required because: - Fide IDs are one-way hashes - cannot be reversed to get reference identifiers - Protocol specification requires both fields - Indexers need reference identifiers for lookup tables and human-readable display - Enables mapping back to human-readable identifiers for debugging and display
StatementProperties
Prop
Type
type FideId
Full Fide ID format (with did:fide:0x prefix). Length: 11 ("did:fide:0x") + 40 hex = 51 chars.
`did:fide:0x${string}`calculateStatementFideId
Calculate a Fide ID for a Statement from its RDF triple components. Creates a statement Fide ID by hashing the reference identifier: concatenation of subject, property, and object Fide IDs in that order, separated by ASCII `|`. No whitespace. This helper always returns the self-referential Statement form (Entity Type/Reference Type = `0000`).
getFideEntityTypeSpecByName
Look up the definition for a single Fide entity type by name.