Fide logoFIDE

getFideEntityTypeSpecByName

Look up the definition for a single Fide entity type by name.

Node Runtime Required

This function requires a Node.js runtime and is disabled in the browser docs preview.
getFideEntityTypeSpecByName(name)

Parameters

nameFideEntityTypeName*
The entity type name.

Returns

Prop

Type

import { getFideEntityTypeSpecByName } from '@fide-work/context-protocol';

const result = getFideEntityTypeSpecByName('Person');

Type Definitions

type FideEntityTypeNameLarge type
"Statement" | "DirectionalProperty" | "SymmetricProperty" | "Person" | "Organization" | "SoftwareAgent" | "NetworkResource" | "PlatformAccount" | "CryptographicAccount" | "CreativeWork" | "Concept" | "Place" | "Event" | "Action" | "PhysicalObject" | "TextLiteral" | "IntegerLiteral" | "DecimalLiteral" | "BoolLiteral" | "DateLiteral" | "YearMonthLiteral" | "YearLiteral" | "TimeLiteral" | "DateTimeLiteral" | "DurationLiteral" | "URILiteral" | "JSONLiteral"

type FideEntityTypeSpec

FideEntityTypeSpec

Properties

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

Statement

Properties

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}`