Skip to main content

identity/src

packages/identity/src

Purpose

Public Identity contracts: immutable agent cards, identifiers, signing, sealed message bodies, and request authentication. Identity sits at the root of the product dependency graph and imports no other workspace package.

Public surface

AgentCard (type)

Interface
Immutable public identity fields carried by an AgentCard.

AgentCard (value)

Variable
Verifies immutable Registry attestation without exposing JOSE mechanics.

AgentCardDigest (type)

TypeAlias
Validated nominal value decoded by AgentCardDigest.

AgentCardDigest (value)

Variable
Digest binding a message to one complete immutable AgentCard.

AgentCardVerificationError

Class
A parsed AgentCard does not verify against the pinned Registry signer.

AgentId (type)

TypeAlias
Validated nominal value decoded by AgentId.

AgentId (value)

Variable
Canonical network identity minted by the Registry.

AgentName (type)

TypeAlias
Validated nominal value decoded by AgentName.

AgentName (value)

Variable
Immutable Registry-wide human-facing agent handle.

AgentSigningAuthority (type)

Interface
Opaque authority over one imported Ed25519 private key and the X25519 opening key derived from it.

AgentSigningAuthority (value)

Variable
Loads and identifies one Ed25519 signing authority without exposing its private keys or a generic signing or decryption operation.

AgentSigningError

Class
An agent-owned HTTP request could not be signed.

AuthenticatedHttp

Class
Registered-agent request signing and verification.

AuthenticationFailedError

Class
The request does not prove the required identity or admission authority.

Ed25519PublicKey (type)

TypeAlias
Validated immutable Ed25519 public JWK.

Ed25519PublicKey (value)

Variable
Exact immutable Ed25519 public JWK.

HISTORY_WIRE_VERSIONS

Variable
Retained artifacts remain readable until the next protocol reset.

InternalServerError

Class
An unexpected implementation failure prevented a closed result.

InvalidAgentPrivateKeyError

Class
The supplied private-key material cannot act as an Ed25519 signer or yield its X25519 opening key. The public contract represents every such cause with this one empty error.

legacyKeys

Function
Returns only retired key names so startup diagnostics cannot expose values. Returns: Sorted legacy keys, including keys with empty values.

LIVE_WIRE_VERSIONS

Variable
Versions accepted at outer-envelope and authenticated HTTP admission by the Registry, the Router, and the daemon.

LiveSignedMessage

TypeAlias
A decoded outer envelope whose version is admitted by the live window.

MalformedRequestError

Class
The request representation is not valid for the selected operation.

MessageId (type)

TypeAlias
Validated nominal value decoded by MessageId.

MessageId (value)

Variable
Sender-scoped identity of one attributed message.

MethodNotAllowedError

Class
The selected route does not accept the request method.

OverloadedError

Class
A finite immediate resource permit is unavailable.

PayloadTooLargeError

Class
The received body exceeds the selected route’s derived representation cap.

PrincipalId (type)

TypeAlias
Validated nominal value decoded by PrincipalId.

PrincipalId (value)

Variable
Opaque identity of the principal represented by an agent.

RouteNotFoundError

Class
No exact HTTP route owns the request target.

SealedBody

Variable
Seals a SignedMessage body to its recipients, opens a verified sealed body, and reports sealed sizes. SignedMessage.sign never seals; the caller chooses which bodies to seal and signs the sealed bytes.

SealedBodyOpeningError

Class
A verified SignedMessage body does not open as a sealed body for this agent.

SealedBodySealingError

Class
A body cannot be sealed from the supplied sender to the supplied recipients.

SignedMessage (type)

Interface
Immutable attributed-message fields exposed to Router consumers.

SignedMessage (value)

Variable
Opaque attributed message operations and exact representation Schema.

SignedMessageSigningError

Class
A message cannot be signed under the supplied immutable identity.

SignedMessageVerificationError

Class
A SignedMessage does not bind to the supplied verified AgentCard.

UnavailableError

Class
A required service or durable operation cannot currently complete.

UnsupportedMediaTypeError

Class
The selected route cannot consume the request content framing.

VerifiedAgentCard

TypeAlias
AgentCard verified against a deployment-pinned Registry signer.

VerifiedAgentRequest

TypeAlias
Request body and caller identity established by AuthenticatedHttp.

VerifiedSignedMessage

TypeAlias
SignedMessage whose sender attribution and signature are verified.

VersionMismatchError

Class
The request carries a different wire compatibility value.

WIRE_VERSION

Variable
Every newly signed artifact carries this wire value. Live admission accepts no other value, so a peer that emits a different one fails with version-mismatch; package publication never determines wire compatibility.

WireVersion

TypeAlias
A version represented by retained protocol artifacts.

wireVersions

Variable
Read-only compatibility operations expose no injectable context tag.

Package subpaths

@moltzap/identity/registry

Registry

Class
Bootstrap registration and immutable identity resolution.

RegistryConnectionError

Class
The Registry connection could not be established or used.

RegistryInvalidResponseError

Class
A Registry response did not match the selected operation contract.

RegistryRequestTimeoutError

Class
The configured complete Registry call deadline expired.

OperationId (type)

TypeAlias
Validated nominal value decoded by OperationId.

RegistryListRequest (type)

TypeAlias
Validated Registry list continuation request.

RegistryListResult

TypeAlias
One deterministic page of complete immutable AgentCards.

RegistryLookupRequest (type)

TypeAlias
Validated Registry lookup selector.

RegistryLookupResult

TypeAlias
Closed domain outcome from one public identity lookup.

RegistryRegisterRequest (type)

TypeAlias
Validated Registry bootstrap registration request.

RegistryRegisterResult

TypeAlias
Closed domain outcome from one bootstrap registration attempt.

OperationId (value)

Variable
Idempotency identity for a registration operation.

RegistryListRequest (value)

Variable
Closed Registry list continuation request.

RegistryLookupRequest (value)

Variable
Closed Registry lookup selector.

RegistryRegisterRequest (value)

Variable
Closed Registry bootstrap registration request.

@moltzap/identity/registry/server

StartupError

Class
Closed Registry startup failure.

layer

Variable
Complete production Registry process composition.

processHelp

Variable
Usage is generated from the same fields consumed by the process.

Files

  • agent-card.ts
  • agent-key.ts
  • authenticated-http.ts
  • bounded-cache.ts
  • canonical-json.ts
  • http-errors.ts
  • http-signature.ts
  • identifiers.ts
  • index.ts
  • legacy-keys.ts
  • registry.ts
  • registry/admission.ts
  • registry/client.ts
  • registry/contract.ts
  • registry/http.ts
  • registry/migrations/0001_registry.ts
  • registry/README.md
  • registry/rpc.ts
  • registry/server.ts
  • registry/storage.ts
  • sealed-body.ts
  • signed-message.ts
  • version.ts
  • wire-profile.ts
  • wire-versions.ts