Skip to content
Wallet and Entity Collection draft updates
Documentation menu

@oidfed/core API

API reference

Every entry below is exported from @oidfed/core; there are no public subpath imports. Class entries cover constructors and library-defined public members. Standard Error inheritance is noted beside error classes.

Signatures preserve optional and read-only declarations. An optional property is marked with ?; undefined is included in its declared type only when the source allows it explicitly. Schema field tables describe parsed output, which can differ from raw input. Parsing, decoding, signature verification, and establishing trust are separate steps; each entry states which work it performs.

Storage

Storage contracts cover FederationStorage and MemoryFederationStorage. See also the storage migration guide.

Identifiers, results, and host contracts

API Kind
assertPositiveTtlSeconds Function
chainCacheKey Function
ChainSelectionStrategy Type
Clock Interface
CryptoContext Interface
composeEntityMetadata Function
ConstraintCheckContext Interface
ConstraintCheckDefinition Interface
createTrustAnchorSet Function
DiscoveryResult Type
ecCacheKey Function
EntityContext Interface
entityId Function
EntityId Type
EntityRole Interface
err Function
esCacheKey Function
federationError Function
FederationError Type
FederationOptions Interface
findInvalidMetadataNullPaths Function
flatMap Function
freezeSnapshot Function
HttpClient Type
isErr Function
isJsonData Function
isLanguageTag Function
isOk Function
isValidEntityId Function
JtiReplayClaim Interface
JwsService Class
Logger Interface
map Function
mapErr Function
nowSeconds Function
ok Function
ParsedEntityStatement Type
PolicyMergeResult Type
PolicyOperatorDefinition Interface
PolicyOperatorResult Type
ReplayStore Interface
ReplayStoreCapacityError Class
ResolvedMetadataPolicy Type
Result Type
runAsyncOperation Function
safeLogger Function
setOwn Function
TrustAnchorSet Type
TrustChain Interface
TrustChainResult Interface
TrustMarkEvaluation Type
TrustMarkEvidence Interface
UnverifiedEntityStatement Type
unwrapOr Function
ValidatedTrustChain Interface
ValidatedTrustMark Interface
ValidatedTrustMarkDelegation Interface
validateRoleMetadata Function
ValidationError Interface
ValidationResult Type
waitForOperation Function

Client and endpoint authentication

API Kind
authenticateClientAttestation Function
AuthenticateClientAttestationOptions Interface
authenticatedEndpointCaller Function
authenticateEndpointRequest Function
ClientAssertionOptions Interface
ClientAttestation Type
ClientAttestationError Interface
ClientAttestationFreshness Type
clientAttestationHeaders Function
ClientAttestationOptions Interface
ClientAttestationReplay Type
ClientAttestationVerificationOptions Interface
createAttestationChallengeHandler Function
createAttestationChallengeResponse Function
createClientAssertion Function
createClientAttestation Function
CreateClientAttestationParams Interface
createClientAttestationProof Function
CreateClientAttestationProofParams Interface
createEndpointAuthenticatedHandler Function
CustomEndpointClientAuthentication Interface
EndpointAuthentication Interface
EndpointAuthenticationConfig Interface
EndpointAuthenticationContext Interface
EndpointAuthenticationError Interface
endpointAuthenticationErrorResponse Function
EndpointAuthenticationInput Interface
EndpointAuthenticationMethod Interface
EndpointAuthenticationProvider Type
EndpointClientAuthentication Type
endpointCredentialParameterNames Function
fetchAttestationChallenge Function
invokeVerificationPolicy Function
parseClientAttestationHeaders Function
parseConcatenatedClientAttestation Function
PrivateKeyJwtEndpointAuthentication Interface
readAttestationChallenge Function
serializeClientAttestation Function
TrustedClientAttester Interface
validateEndpointAuthentication Function
VerifiedAttestationChallenge Interface
VerifiedClientAssertion Interface
VerifiedClientAttestation Interface
verifyClientAssertion Function
verifyClientAttestation Function

Entity Statements and signatures

API Kind
assertTypHeader Function
buildEntityConfigurationPayload Function
BuildEntityConfigurationPayloadOptions Interface
buildSubordinateStatementPayload Function
BuildSubordinateStatementPayloadOptions Interface
checkApplicationJwtHeader Function
decodeApplicationJwt Function
decodeEntityConfiguration Function
decodeEntityStatement Function
decodeSubordinateStatement Function
EntityStatementExtensions Interface
EntityStatementKind Type
EntityStatementMetadata Type
matchesJwtType Function
prepareEntityStatementExtensions Function
signApplicationJwt Function
signEntityConfiguration Function
SignEntityConfigurationOptions Interface
signEntityStatement Function
SignEntityStatementOptions Interface
signSubordinateStatement Function
SignSubordinateStatementOptions Interface
validateCriticalClaims Function
validateEntityStatementClaims Function
ValidateEntityStatementClaimsOptions Interface
validateEntityStatementTimeClaims Function
validateSubordinateStatementPublicationClaims Function
VerifiedProtocolJwt Interface
verifyApplicationJwt Function
verifyEntityStatement Function
verifyProtocolJwt Function
VerifyProtocolJwtOptions Interface

Keys, rollover, and protocol JWKS

API Kind
EntityKeysSource Type
fetchJwkSet Function
fetchSignedJwkSet Function
FetchSignedJwkSetOptions Interface
isValidAlgorithm Function
JWK_PUBLIC_FIELDS Value
jwkThumbprint Function
preparePublicJwkSet Function
ResolvedEntityKeys Interface
resolveEntityKeys Function
ResolveEntityKeysOptions Interface
selectVerificationKey Function
stripPrivateFields Function
timingSafeEqual Function
validateFederationKeySet Function
validateJwkSetUseRequirement Function
validatePublicJwkSet Function
validateSignedJwkSetSpecHygiene Function

Federation endpoint clients and responses

API Kind
buildExtendedListRequestParameters Function
COLLECTION_UNORDERED_PARAMETERS Value
EndpointAdditionalParameters Type
endpointParameterValuesMatch Function
errorResponse Function
EXTENDED_LIST_UNORDERED_PARAMETERS Value
ExtractedRequestParams Interface
extractRequestParams Function
fetchEntityCollection Function
FetchEntityCollectionOptions Interface
fetchExtendedSubordinatesList Function
fetchHistoricalKeys Function
FetchHistoricalKeysOptions Interface
fetchListSubordinates Function
fetchResolveResponse Function
fetchSubordinateEvents Function
FetchSubordinateEventsOptions Interface
fetchTrustMarkList Function
FetchTrustMarkListParams Interface
isExactContentType Function
isReservedEndpointParameter Function
jsonResponse Function
jwtResponse Function
LIST_UNORDERED_PARAMETERS Value
ListSubordinatesFilter Interface
parseContentTypeHeader Function
ParsedContentTypeHeader Interface
parseQueryParams Function
prepareEndpointParameters Function
readBodyWithLimit Function
readStreamWithLimit Function
requireMethod Function
requireMethods Function
RESOLVE_UNORDERED_PARAMETERS Value
ResolveRequestParams Interface
SECURITY_HEADERS Value
selectHistoricalVerificationKey Function
SelectHistoricalVerificationKeyOptions Interface
toPublicError Function
verifyHistoricalKeysResponse Function
VerifyOptions Interface
verifyResolveResponse Function
VerifyResolveResponseOptions Interface
verifySignedJwkSet Function
VerifySignedJwkSetOptions Interface
VerifySubordinateEventsOptions Interface
verifySubordinateEventsResponse Function
VerifyTrustMarkStatusOptions Interface
verifyTrustMarkStatusResponse Function

Discovery, chain validation, and assessments

API Kind
assessEntity Function
calculateChainExpiration Function
chainRemainingTtl Function
compareTrustAnchorKeys Function
completeTrustChainValidation Function
ContextualMetadataClaim Interface
createConcurrencyLimiter Function
createTrustChainOperation Function
describeTrustChain Function
discoverEntity Function
discoverEntityFromChain Function
EntityAssessment Type
EntityAssessmentOptions Interface
FederationResolverConfig Interface
FederationResolverIntegration Type
FederationResolverService Class
entityConfigurationUrl Function
fetchEntityConfiguration Function
fetchSubordinateStatement Function
FetchSubordinateStatementOptions Interface
isChainExpired Function
isEntityAssessment Function
longestExpiry Value
preferTrustAnchor Function
PreparedTrustChain Interface
PrepareTrustChainOptions Interface
prepareTrustChainValidation Function
RefreshOptions Interface
refreshTrustChain Function
resolveTrustChainForAnchor Function
resolveTrustChains Function
ResolveTrustChainsOptions Interface
selectTrustChain Function
shortestChain Value
TrustAnchorKeyComparisonResult Interface
TrustedResolverConfig Interface
TrustResolutionSource Type
validateEntityId Function
validateFetchUrl Function
validateTrustChain Function

Metadata policies and constraints

API Kind
applyAllowedEntityTypes Function
applyMetadataPolicy Function
checkConstraints Function
checkMaxPathLength Function
checkNamingConstraints Function
MetadataPolicyOptions Interface
operators Value
resolveMetadataPolicy Function
validateCustomOperators Function
validateMetadataPolicy Function

Trust Marks

API Kind
AttachTrustMarkOptions Interface
checkTrustMarkRequirements Function
EstablishTrustMarkIssuerOptions Interface
establishTrustMarkIssuerTrust Function
FederationTrustMarkIssuerEvidence Interface
FetchAndAttachTrustMarkOptions Interface
fetchTrustMark Function
FetchTrustMarkParams Interface
fetchTrustMarkStatus Function
FetchTrustMarkStatusInput Interface
FetchTrustMarkStatusOptions Interface
HistoricalTrustMarkOptions Interface
isStoredTrustMarkEligible Function
OutOfBandTrustMarkIssuer Interface
RemoveTrustMarkSelector Type
signTrustMark Function
signTrustMarkDelegation Function
SignTrustMarkDelegationOptions Interface
SignTrustMarkOptions Interface
TrustMarkDelegationIssuanceOptions Type
TrustMarkHolder Class
TrustMarkIssuanceOptions Interface
TrustMarkIssuerConfig Interface
trustMarkIssuerContext Function
TrustMarkIssuerContext Type
TrustMarkIssuerService Class
TrustMarkIssuerServiceOptions Interface
TrustMarkLifetime Interface
TrustMarkListOptions Interface
TrustMarkListPage Interface
TrustMarkProfile Interface
TrustMarkRecord Interface
TrustMarkRequestContext Interface
TrustMarkRequestExtension Type
TrustMarkRequirements Interface
TrustMarkStatusAssessment Interface
TrustMarkStatusPolicy Type
TrustMarkStatusPolicyContext Interface
TrustMarkStatusResult Interface
TrustMarkStore Interface
TrustMarkValidationOptions Interface
TrustMarkVerificationOptions Interface
validateTrustMark Function
validateTrustMarkLogo Function
ValidateTrustMarkLogoOptions Interface
validateTrustMarkWithIssuer Function
ValidateTrustMarkWithIssuerOptions Interface

Entity Collection

API Kind
CollectionAuthentication Interface
CollectionEntry Interface
CollectionRefreshOptions Interface
CollectionRefreshResult Interface
EntityCollectionCandidate Interface
EntityCollectionCollector Type
EntityCollectionCollectorContext Interface
EntityCollectionConfig Interface
EntityCollectionCursor Interface
EntityCollectionCursorCapacityError Class
EntityCollectionFilter Type
EntityCollectionIntegration Type
EntityCollectionQueryMatcher Type
EntityCollectionService Class
EntityCollectionSnapshot Interface
EntityCollectionStore Interface

Schemas and wire types

API Kind
BaseEntityStatementSchema Value
COLLECTION_INFO_CLAIMS Value
createCollectionSchemas Function
DecodedFederationJwtPayload Type
EntityCollectionEntity Type
EntityCollectionEntitySchema Value
EntityCollectionRequestParams Type
EntityCollectionRequestSchema Value
EntityCollectionResponse Type
EntityCollectionResponseSchema Value
EntityConfigurationPayload Type
EntityConfigurationSchema Value
EntityIdSchema Value
EntityStatementPayload Type
EntityStatementPayloadSchema Value
EntityTypeInfo Type
EntityTypeInfoSchema Value
EntityTypeMetadataMap Type
EntityTypeMetadataPolicy Type
EntityTypeMetadataPolicySchema Value
EXTENDED_LIST_SUPPORTED_CLAIMS Value
ExtendedListClaim Value and type
ExtendedListEntity Type
ExtendedListEntitySchema Value
ExtendedListQuery Type
ExtendedListQuerySchema Value
ExtendedListRequestParams Interface
ExtendedListResponse Type
ExtendedListResponseSchema Value
FederationEntityMetadata Type
FederationEntityMetadataSchema Value
FederationMetadata Type
FederationMetadataPolicy Type
FederationMetadataPolicySchema Value
FederationMetadataSchema Value
FetchQuerySchema Value
getEntityTypes Function
HistoricalKeyEntry Type
HistoricalKeyEntrySchema Value
HistoricalKeysPayload Type
HistoricalKeysPayloadSchema Value
JWK Type
JWKSchema Value
JWKSet Type
JWKSetSchema Value
ListQuerySchema Value
MetadataJWKSetSchema Value
MetadataParameterPolicy Type
MetadataParameterPolicySchema Value
NamingConstraints Type
NamingConstraintsSchema Value
OAuthAuthorizationServerMetadata Type
OAuthAuthorizationServerPublicationMetadata Type
MetadataValidationOptions Interface
withMetadataJwkUse Function
parseOAuthAuthorizationServerMetadata Function
parseOAuthAuthorizationServerPublicationMetadata Function
ResolveQuerySchema Value
ResolveResponsePayload Type
ResolveResponsePayloadSchema Value
SubordinateEvent Type
SubordinateEventSchema Value
SubordinateEventsResponse Type
SubordinateEventsResponseSchema Value
SubordinateEventType Value
SubordinateStatementPayload Type
SubordinateStatementSchema Value
TrustChainConstraints Type
TrustChainConstraintsSchema Value
TrustMarkDelegationPayload Type
TrustMarkDelegationPayloadSchema Value
TrustMarkOwner Type
TrustMarkOwnerSchema Value
TrustMarkPayload Type
TrustMarkPayloadSchema Value
TrustMarkRef Type
TrustMarkRefSchema Value
TrustMarkStatusBodySchema Value
TrustMarkStatusResponsePayload Type
TrustMarkStatusResponsePayloadSchema Value

Protocol constants and defaults

API Kind
CachePrefix Value
DEFAULT_CACHE_MAX_TTL_SECONDS Value
DEFAULT_CACHE_TTL_SECONDS Value
DEFAULT_CLIENT_ASSERTION_TTL_SECONDS Value
DEFAULT_CLOCK_SKEW_SECONDS Value
DEFAULT_DELEGATION_TTL_SECONDS Value
DEFAULT_ENTITY_STATEMENT_TTL_SECONDS Value
DEFAULT_HTTP_TIMEOUT_MS Value
DEFAULT_MAX_AUTHORITY_HINTS Value
DEFAULT_MAX_CHAIN_DEPTH Value
DEFAULT_MAX_CHAIN_LENGTH Value
DEFAULT_MAX_REQUEST_BODY_BYTES Value
DEFAULT_MAX_RESOLUTION_STEPS Value
DEFAULT_MAX_RESPONSE_BYTES Value
DEFAULT_REQUEST_OBJECT_TTL_SECONDS Value
EntityType Value and type
EntityTypeIdentifier Type
FederationEndpoint Value and type
FederationErrorCode Value and type
InternalErrorCode Value and type
JWT_BEARER_CLIENT_ASSERTION_TYPE Value
JwtTyp Value and type
MediaType Value and type
PolicyOperator Value and type
INTEROP_RECOMMENDED_ALGORITHMS Value
STANDARD_ENTITY_STATEMENT_CLAIMS Value
StandardPolicyOperator Enum and type
DEFAULT_ALLOWED_ALGORITHMS Value
SupportedAlgorithm Type
TrustMarkStatus Value and type
WELL_KNOWN_OPENID_FEDERATION Value

The shared crypto service and contracts cover JwsService, CryptoContext, BoundFederationOptions, SigningPurposes, historicalKeysFromKeyring, and portable data helpers.

View source on GitHub