Skip to content

TypeScript: @dnsid-ai/registry

Registry control-plane client and TXT publishing helpers for DNSid TypeScript packages.

This package owns the current DNSid registry API surface and registry-shaped lifecycle/status behavior. It intentionally keeps registry-specific states separate from protocol-strict @dnsid-ai/protocol agent status types.

Terminal window
npm install @dnsid-ai/registry @dnsid-ai/protocol
import { RegistryClient, publishClientControlledRecord } from '@dnsid-ai/registry';
import { createRegistryClientFromEnvironment } from '@dnsid-ai/sdk/node';
// Local by default: http://127.0.0.1:7755 from `dnsid local up`, no credential.
// Hosted: set DNSID_REGISTRY_URL and DNSID_API_KEY from the console.
const registryClient = await createRegistryClientFromEnvironment();
// Or explicitly: new RegistryClient({ baseUrl, token }). HTTPS required except on loopback.
await publishClientControlledRecord({
config,
entityKeyProvider,
registryClient,
});

Registry workflow status is kept separate from protocol AgentStatus. Client-controlled identities publish with publishClientControlledRecord(); registry-managed identities use awaitRegistryManagedPublication(), which requires an observed and verified DNS record before succeeding. publishToRegistry() remains as a deprecated compatibility alias.

The client supports self-managed, zone-explicit, and Live registration workflows, authenticated/custom requests, verification/challenge helpers, typed preparation of C2SP issuance and key rotation, record signing, revoke, cancel, unregister, and retire helpers. registerLiveAgent() sets tier: "live" and managed: true internally, requires a separate idempotency key, and returns a distinct proof challenge rather than a normal registration. While challenge_pending, the response includes the assigned domain and validated challenge transcript. Sign the exact bytes decoded from the latest challengeMessage; a reissued challenge supersedes every earlier challenge and message. Preparation returns only untrusted exact response bytes; it does not submit or append them. Before signing, validate issuance against the reference in its signed lr and later events against the identity’s verified log reference. The DNSID-Log-Reference response header is ignored. Registry-managed lifecycle operations are single-owner workflows: callers submit through the registry and must not append a duplicate local lifecycle event.

registerAgent({ publicKeyJwk }, idempotencyKey?) requests an assigned name under the registry’s sandbox root without injecting legacy defaults. Optional domain, rootDomain, and governanceDomain select an exact FQDN, caller-owned active root, and expected accountable GI. domain and rootDomain are mutually exclusive. Assigned names require a public key; the registry decides hosting, ownership, admission, and whether an exact-domain request requires a key.

The client validates the creation response’s immutable id, domain, and required publication_config, then reads authenticated management status to obtain publicationAuthority. The returned publicationConfig and oidcIssuerUrl are creation snapshots, not values inferred from selectors or replaced by later status defaults. Persist them; they do not grant counterparty trust.

Ordinary registration permits an omitted key. For retry safety, generate and persist the key and registration input before the first attempt, then reuse both for reconciliation. Existing input.idempotencyKey remains supported. Do not generate a fresh key on each retry: the POST may have created an agent even when its response or the subsequent status GET fails. Matching ordinary registration replays still require HTTP 201.

Request/response failures throw RegistrationError with idempotencyKey, the original input and cause, httpStatus and registry code when available, and creation containing any decoded creation facts (including ID, domain, publication configuration, and OIDC issuer). These facts remain untrusted if validation failed. domain is also exposed when parsed. If the domain is known, call getRegistration(error.domain) to recover status without another POST; otherwise replay only with the original key and complete input. Do not retry an unknown creation outcome without a key. Governance-unavailable or input-mismatch errors do not trigger fallback roots, replacement creation, or anonymous reads. An error does not prove creation succeeded or failed. No automatic retries are performed; resolve permanent request errors rather than blindly retrying them.

Automatic managed recovery requires permanent organization-scoped replay claims. Identical low-level key strings in different organizations are independent. Named SDK setup derives keys from organization ID, normalized name, and the initial key thumbprint; the server must validate those bindings before allocation, claim one nonterminal identity per organization/name atomically, and reject conflicting keys/input without mutation or disclosure. Matching hosts open the same immutable identity. Claims survive retirement/deletion: old replay returns the old identity or a terminal error, never a replacement. Explicit replacement uses a fresh key, ID, domain, and log stream, preserving history and rejecting all previously used keys.

getOrganizationOnboarding() reads the existing authenticated /api/v1/org/onboarding endpoint and validates account/GI domains and proof-domain consistency. Pass configured or saved organizationId and governanceId expectations to compare bindings. ready is true only when GI is verified and gate-authorized and entity-key delegation is verified. Missing and pending proofs remain available with ready: false; they must not authorize setup. Discovery does not return an entity JWKS URL or establish counterparty trust. Authorization errors and HTTP 503 remain errors; failed reads are never retried anonymously.

These are required server contracts, not claims of deployed support. Verify them with real server persistence/integration tests before enabling named recovery; the existing expiring store is insufficient, and an acknowledgement flag cannot establish safety.

Key-rotation preparation requires owner credentials: a session cookie or organization API key. An agent bearer token is not accepted.

Registry status semantics are still expected to align with ongoing registry server status work before this API is considered stable.

Legacy selectors environment, managed, and zoneId remain supported; explicit GI/root selectors are sent unchanged for server resolution. registerSelfManagedAgent({ domain }) and registerInZone({ zoneId, publicKeyJwk }) retain their production environment default. An exact domain does not guarantee client-controlled publication. Private JWK members and JWKS-shaped keys are rejected before any request is sent. Client-controlled publication validates every known TXT tag against the effective publication configuration. config.maxKeyAge controls the ka tag; when omitted, the helper expects ka to be omitted. Legacy callers may pass effectiveMaxKeyAge as an explicit override. Callers must configure the effective gi, ek, ku, lr, su, fl, and cu values exactly.

submitPreparedEvent() throws PreparedEventSubmissionError for structured product errors. Only TLOG_SUBMISSION_BUSY and TLOG_SUBMISSION_INDETERMINATE are marked retryable; callers must retain and retry the same idempotency key and exact entry bytes when retryWithSameBytes is true.

Registry control-plane client and TXT publishing helpers for DNSid.

@dnsid-ai/registry owns the DNSid registry API surface: RegistryClient (agent registration, verification, lifecycle, prepared C2SP transparency-log events, record signing) plus publication workflows — publishClientControlledRecord for client-controlled identity records signed with the entity key, and awaitRegistryManagedPublication for registry-managed publication verified against observed DNS. Registry workflow status is kept separate from the protocol-strict agent status types in @dnsid-ai/protocol.

Defined in: packages/registry/src/index.ts:300

Structured product error from exact-byte C2SP submission.

retryWithSameBytes is deliberately true only when retrying the same idempotency key and byte sequence is safe and required for reconciliation: code TLOG_SUBMISSION_BUSY (state pending), code TLOG_SUBMISSION_INDETERMINATE, or HTTP 408, 425, 429 or any 5xx whatever the code (state indeterminate). Code matching ignores case. Every other failure is rejected.

  • Error

new PreparedEventSubmissionError(options): PreparedEventSubmissionError;

Defined in: packages/registry/src/index.ts:307

string

number

string

boolean

boolean

PreparedEventSubmissionErrorState

PreparedEventSubmissionError

Error.constructor

optional cause?: unknown;

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause

readonly code: string;

Defined in: packages/registry/src/index.ts:301

readonly httpStatus: number;

Defined in: packages/registry/src/index.ts:302

message: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message

name: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name

readonly retryable: boolean;

Defined in: packages/registry/src/index.ts:304

readonly retryWithSameBytes: boolean;

Defined in: packages/registry/src/index.ts:305

optional stack?: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack

readonly state: PreparedEventSubmissionErrorState;

Defined in: packages/registry/src/index.ts:303

static stackTraceLimit: number;

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void;

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static prepareStackTrace(err, stackTraces): any;

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace

Defined in: packages/registry/src/index.ts:62

Registration may have succeeded; reconcile rather than retrying with a new key.

  • Error

new RegistrationError(
idempotencyKey,
domain,
cause,
input?,
creation?,
httpStatus?,
code?
): RegistrationError;

Defined in: packages/registry/src/index.ts:63

string | undefined

string | undefined

Assigned domain, when the creation response was successfully parsed.

unknown

AgentRegistrationInput

Record<string, unknown>

Decoded creation response, retained even if validation failed; not trust evidence.

number

string

RegistrationError

Error.constructor

optional cause?: unknown;

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause

readonly optional code?: string;

Defined in: packages/registry/src/index.ts:72

readonly optional creation?: Record<string, unknown>;

Defined in: packages/registry/src/index.ts:70

Decoded creation response, retained even if validation failed; not trust evidence.

readonly domain: string | undefined;

Defined in: packages/registry/src/index.ts:66

Assigned domain, when the creation response was successfully parsed.

readonly optional httpStatus?: number;

Defined in: packages/registry/src/index.ts:71

readonly idempotencyKey: string | undefined;

Defined in: packages/registry/src/index.ts:64

readonly optional input?: AgentRegistrationInput;

Defined in: packages/registry/src/index.ts:68

message: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message

name: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name

optional stack?: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack

static stackTraceLimit: number;

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void;

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static prepareStackTrace(err, stackTraces): any;

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace

Defined in: packages/registry/src/index.ts:331

new RegistryClient(options?): RegistryClient;

Defined in: packages/registry/src/index.ts:338

RegistryClientOptions = {}

RegistryClient

cancelAgent(domain): Promise<LifecycleResult>;

Defined in: packages/registry/src/index.ts:767

string

Promise<LifecycleResult>

canonicalRecordContent(domain, signingKid): Promise<CanonicalRecordContentResponse>;

Defined in: packages/registry/src/index.ts:583

string

string

Promise<CanonicalRecordContentResponse>

getAgent(domain): Promise<AgentRegistration | undefined>;

Defined in: packages/registry/src/index.ts:516

string

Promise<AgentRegistration | undefined>

getAgentStatus(domain): Promise<AgentRegistration | undefined>;

Defined in: packages/registry/src/index.ts:662

string

Promise<AgentRegistration | undefined>

Use getRegistration().

getIdentityRecordToSign(
domain,
agentFQDN?,
signingKid?
): Promise<IdentityRecordToSign>;

Defined in: packages/registry/src/index.ts:553

string

string = domain

string

Promise<IdentityRecordToSign>

getOrganizationOnboarding(options?): Promise<OrganizationOnboardingResponse>;

Defined in: packages/registry/src/index.ts:597

Reads existing authenticated onboarding without creating identities or retrying anonymously.

string

string

AbortSignal

Promise<OrganizationOnboardingResponse>

getRegistration(domain, options?): Promise<AgentRegistration | undefined>;

Defined in: packages/registry/src/index.ts:635

string

AbortSignal

Promise<AgentRegistration | undefined>

prepareIssuance(
domain,
idempotencyKey,
options?
): Promise<PreparedRegistryEvent>;

Defined in: packages/registry/src/index.ts:666

string

string

AbortSignal

Promise<PreparedRegistryEvent>

prepareKeyRotation(
domain,
request,
idempotencyKey
): Promise<PreparedRegistryEvent>;

Defined in: packages/registry/src/index.ts:681

Requires owner credentials (session or API key); an agent bearer token is not accepted.

string

KeyRotationPreparationRequest

string

Promise<PreparedRegistryEvent>

publishTxtRecordWithSigner(
domain,
sign,
validation
): Promise<PublishedRecord>;

Defined in: packages/registry/src/index.ts:538

string

(canonical) => Promise<string | Uint8Array<ArrayBufferLike>>

PublishTxtRecordValidationOptions

Promise<PublishedRecord>

registerAgent(input, idempotencyKey?): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:353

Unified creation. Persist input and an optional replay key before calling; no automatic retries. Automatic managed recovery requires the server to permanently and atomically bind each organization-scoped key to the complete request and immutable registration. Named setup derives keys from organization/name/key thumbprint; the server must validate that binding before allocation. Retirement and deletion must not release claims.

AgentRegistrationInput

string | undefined

Promise<AgentRegistration>

registerInZone(input): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:447

Omit<AgentRegistrationInput, "domain" | "managed"> & object

Promise<AgentRegistration>

registerLiveAgent(
input,
idempotencyKey,
options?
): Promise<LiveProvisioningResponse>;

Defined in: packages/registry/src/index.ts:406

LiveAgentRegistrationInput

string

AbortSignal

Promise<LiveProvisioningResponse>

registerSelfManagedAgent(input): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:443

Omit<AgentRegistrationInput, "zoneId" | "managed"> & object

Promise<AgentRegistration>

reissueLiveProof(
domain,
requestId,
publicKeyJwk,
options?
): Promise<LiveProofReissueResponse>;

Defined in: packages/registry/src/index.ts:491

string

string

DnsIdJWK

AbortSignal

Promise<LiveProofReissueResponse>

retireAgent(domain, agentId): Promise<LifecycleResult>;

Defined in: packages/registry/src/index.ts:761

string

string

Promise<LifecycleResult>

revokeAgent(
domain,
agentId,
reason
): Promise<LifecycleResult>;

Defined in: packages/registry/src/index.ts:747

string

string

RegistryRevocationReason

Promise<LifecycleResult>

submitChallengeSignature(domain, input): Promise<LifecycleResult>;

Defined in: packages/registry/src/index.ts:462

string

ChallengeSignatureInput

Promise<LifecycleResult>

submitIdentityRecordSignature(domain, input): Promise<PublishedRecord>;

Defined in: packages/registry/src/index.ts:588

string

SubmitIdentityRecordSignatureInput

Promise<PublishedRecord>

submitLiveProof(
domain,
input,
options?
): Promise<LiveProofResponse>;

Defined in: packages/registry/src/index.ts:470

string

LiveProofInput

AbortSignal

Promise<LiveProofResponse>

submitPreparedEvent(
domain,
entryBytes,
idempotencyKey,
options?
): Promise<SubmissionResult>;

Defined in: packages/registry/src/index.ts:696

string

Uint8Array

string

AbortSignal

Promise<SubmissionResult>

triggerVerification(domain): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:455

string

Promise<AgentRegistration>

unregisterAgent(domain): Promise<void>;

Defined in: packages/registry/src/index.ts:773

Best-effort unregister; unsupported and already-absent agents are successful no-ops.

string

Promise<void>

verifyAgent(domain): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:451

string

Promise<AgentRegistration>

waitForStatus(
domain,
predicate,
options?
): Promise<AgentRegistration>;

Defined in: packages/registry/src/index.ts:520

string

(status) => boolean

number

number

Promise<AgentRegistration>


Defined in: packages/registry/src/index.ts:79

  • Error

new RegistryRequestError(
httpStatus,
code,
message
): RegistryRequestError;

Defined in: packages/registry/src/index.ts:80

number

string | undefined

string

RegistryRequestError

Error.constructor

optional cause?: unknown;

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause

readonly code: string | undefined;

Defined in: packages/registry/src/index.ts:80

readonly httpStatus: number;

Defined in: packages/registry/src/index.ts:80

message: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message

name: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name

optional stack?: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack

static stackTraceLimit: number;

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void;

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static prepareStackTrace(err, stackTraces): any;

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace

Defined in: packages/registry/src/index.ts:890

  • Error

new RegistryWorkflowError(message, registration): RegistryWorkflowError;

Defined in: packages/registry/src/index.ts:893

string

AgentRegistration

RegistryWorkflowError

Error.constructor

optional cause?: unknown;

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause

message: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message

name: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name

readonly registration: AgentRegistration;

Defined in: packages/registry/src/index.ts:891

optional stack?: string;

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack

static stackTraceLimit: number;

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void;

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static prepareStackTrace(err, stackTraces): any;

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace

Defined in: packages/registry/src/index.ts:220

optional dnsPublished?: boolean;

Defined in: packages/registry/src/index.ts:225

domain: string;

Defined in: packages/registry/src/index.ts:222

id: string;

Defined in: packages/registry/src/index.ts:221

optional oidcIssuerUrl?: string;

Defined in: packages/registry/src/index.ts:228

optional protocolStatus?: AgentStatus;

Defined in: packages/registry/src/index.ts:226

publicationAuthority: PublicationAuthority;

Defined in: packages/registry/src/index.ts:223

optional publicationConfig?: PublicationConfig;

Defined in: packages/registry/src/index.ts:229

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:230

registryStatus: string;

Defined in: packages/registry/src/index.ts:224

registryUrl: string;

Defined in: packages/registry/src/index.ts:227


Defined in: packages/registry/src/index.ts:40

optional capabilitiesUrl?: string;

Defined in: packages/registry/src/index.ts:56

optional domain?: string;

Defined in: packages/registry/src/index.ts:41

optional environment?: "production" | "sandbox";

Defined in: packages/registry/src/index.ts:52

Legacy registry selector; omitted for unified registration.

optional governanceDomain?: string;

Defined in: packages/registry/src/index.ts:43

Expected accountable GI; without a domain, selects an authorized root.

optional idempotencyKey?: string;

Defined in: packages/registry/src/index.ts:58

Persist before registration; reuse with the same input when reconciling a failed attempt.

optional managed?: boolean;

Defined in: packages/registry/src/index.ts:54

Legacy registry-managed selector; hosting is resolved by the registry.

optional metadata?: Record<string, unknown>;

Defined in: packages/registry/src/index.ts:49

The product registry has no arbitrary registration metadata field.

optional name?: string;

Defined in: packages/registry/src/index.ts:47

Optional product display name. Not published in the DNSid record.

optional publicKeyJwk?: DnsIdJWK;

Defined in: packages/registry/src/index.ts:50

optional rootDomain?: string;

Defined in: packages/registry/src/index.ts:45

Caller-owned active delegated root for an assigned name, not a zone ID.

optional zoneId?: string;

Defined in: packages/registry/src/index.ts:55


Defined in: packages/registry/src/index.ts:875

domain: string;

Defined in: packages/registry/src/index.ts:876

optional expectedRegistration?: AgentRegistration;

Defined in: packages/registry/src/index.ts:885

Immutable creation facts to check on every authenticated observation.

identityManager: IdentityManager;

Defined in: packages/registry/src/index.ts:879

The local identity’s manager; its protocol evidence (not acceptance) confirms publication.

optional intervalMs?: number;

Defined in: packages/registry/src/index.ts:881

optional onObservation?: (registration, signal) => Promise<void>;

Defined in: packages/registry/src/index.ts:887

Progress observer shares the deadline. Callers must settle outstanding writes before releasing storage locks.

AgentRegistration

AbortSignal

Promise<void>

optional publishProfile?: string;

Defined in: packages/registry/src/index.ts:880

registryClient: RegistryClient;

Defined in: packages/registry/src/index.ts:877

optional signal?: AbortSignal;

Defined in: packages/registry/src/index.ts:883

optional timeoutMs?: number;

Defined in: packages/registry/src/index.ts:882


Defined in: packages/registry/src/index.ts:159

canonical: string;

Defined in: packages/registry/src/index.ts:160

signingKid: string;

Defined in: packages/registry/src/index.ts:161


Defined in: packages/registry/src/index.ts:177

nonce: string;

Defined in: packages/registry/src/index.ts:178

signature: string | Uint8Array<ArrayBufferLike>;

Defined in: packages/registry/src/index.ts:179


Defined in: packages/registry/src/index.ts:164

canonicalContent: string;

Defined in: packages/registry/src/index.ts:166

domain: string;

Defined in: packages/registry/src/index.ts:165

optional expiresAt?: Date;

Defined in: packages/registry/src/index.ts:169

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:170

signingKid: string;

Defined in: packages/registry/src/index.ts:167

optional tags?: Record<string, string>;

Defined in: packages/registry/src/index.ts:168


Defined in: packages/registry/src/index.ts:260

previousKeyId: string;

Defined in: packages/registry/src/index.ts:261

publicKey: DnsIdJWK;

Defined in: packages/registry/src/index.ts:262


Defined in: packages/registry/src/index.ts:203

id: string;

Defined in: packages/registry/src/index.ts:204

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:207

registryStatus: string;

Defined in: packages/registry/src/index.ts:205

optional statusNote?: string;

Defined in: packages/registry/src/index.ts:206


Defined in: packages/registry/src/index.ts:86

optional capabilitiesUrl?: string;

Defined in: packages/registry/src/index.ts:90

optional environment?: "production";

Defined in: packages/registry/src/index.ts:88

optional name?: string;

Defined in: packages/registry/src/index.ts:89

publicKeyJwk: DnsIdJWK;

Defined in: packages/registry/src/index.ts:87


Defined in: packages/registry/src/index.ts:93

agentId: string;

Defined in: packages/registry/src/index.ts:96

expiresAt: Date;

Defined in: packages/registry/src/index.ts:100

fqdn: string;

Defined in: packages/registry/src/index.ts:97

keyId: string;

Defined in: packages/registry/src/index.ts:98

nonce: string;

Defined in: packages/registry/src/index.ts:99

orgId: string;

Defined in: packages/registry/src/index.ts:95

protocol: "dnsid-live-provisioning-pop/v1";

Defined in: packages/registry/src/index.ts:94


Defined in: packages/registry/src/index.ts:182

challenge: string;

Defined in: packages/registry/src/index.ts:184

publicKeyJwk: DnsIdJWK;

Defined in: packages/registry/src/index.ts:185

requestId: string;

Defined in: packages/registry/src/index.ts:183

signature: string | Uint8Array<ArrayBufferLike>;

Defined in: packages/registry/src/index.ts:186


Defined in: packages/registry/src/index.ts:196

agentId: string;

Defined in: packages/registry/src/index.ts:191

LiveProofResponse.agentId

challenge: string;

Defined in: packages/registry/src/index.ts:197

challengeMessage: string;

Defined in: packages/registry/src/index.ts:198

challengeTranscript: LiveChallengeTranscript;

Defined in: packages/registry/src/index.ts:200

domain: string;

Defined in: packages/registry/src/index.ts:199

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:193

LiveProofResponse.raw

requestId: string;

Defined in: packages/registry/src/index.ts:190

LiveProofResponse.requestId

status: string;

Defined in: packages/registry/src/index.ts:192

LiveProofResponse.status


Defined in: packages/registry/src/index.ts:189

agentId: string;

Defined in: packages/registry/src/index.ts:191

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:193

requestId: string;

Defined in: packages/registry/src/index.ts:190

status: string;

Defined in: packages/registry/src/index.ts:192


Defined in: packages/registry/src/index.ts:103

agentId: string;

Defined in: packages/registry/src/index.ts:105

challenge: string;

Defined in: packages/registry/src/index.ts:107

challengeMessage: string;

Defined in: packages/registry/src/index.ts:108

optional challengeTranscript?: LiveChallengeTranscript;

Defined in: packages/registry/src/index.ts:111

optional domain?: string;

Defined in: packages/registry/src/index.ts:110

Assigned domain from the validated challenge, or the replay response’s domain member.

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:112

requestId: string;

Defined in: packages/registry/src/index.ts:104

status: string;

Defined in: packages/registry/src/index.ts:106


Defined in: packages/registry/src/index.ts:211

Authenticated organization onboarding; readiness is validated by managed setup.

optional entityKeyStatus?: string;

Defined in: packages/registry/src/index.ts:215

optional gi?: object;

Defined in: packages/registry/src/index.ts:214

optional domain?: string;
optional gateAuthorized?: boolean;
optional state?: string;

optional governanceId?: string;

Defined in: packages/registry/src/index.ts:213

organizationId: string;

Defined in: packages/registry/src/index.ts:212

ready: boolean;

Defined in: packages/registry/src/index.ts:217

Both proofs are verified and authorized; pending or absent proofs remain false.


Defined in: packages/registry/src/index.ts:256

Untrusted exact response bytes; the log binding must validate them before signing.

entryBytes: Uint8Array;

Defined in: packages/registry/src/index.ts:257


Defined in: packages/registry/src/index.ts:234

Authoritative profile-known values used by the registry to prepare an identity record.

optional capabilitiesUrl?: string;

Defined in: packages/registry/src/index.ts:241

ekUrl: string;

Defined in: packages/registry/src/index.ts:238

governanceId: string;

Defined in: packages/registry/src/index.ts:236

kuUrl: string;

Defined in: packages/registry/src/index.ts:237

logRef: string;

Defined in: packages/registry/src/index.ts:239

optional maxKeyAge?: MaxKeyAge;

Defined in: packages/registry/src/index.ts:242

publishProfile: string;

Defined in: packages/registry/src/index.ts:235

statusUrl: string;

Defined in: packages/registry/src/index.ts:240


Defined in: packages/registry/src/index.ts:850

config: IdentityConfig;

Defined in: packages/registry/src/index.ts:851

optional effectiveMaxKeyAge?: MaxKeyAge | null;

Defined in: packages/registry/src/index.ts:855

Explicit legacy ka override. No value is inferred when the authoritative config omits maxKeyAge.

entityKeyProvider: KeyProvider;

Defined in: packages/registry/src/index.ts:852

registryClient: RegistryClient;

Defined in: packages/registry/src/index.ts:853


Defined in: packages/registry/src/index.ts:245

domain: string;

Defined in: packages/registry/src/index.ts:246

ownerName: string;

Defined in: packages/registry/src/index.ts:247

optional protocolStatus?: AgentStatus;

Defined in: packages/registry/src/index.ts:251

publicationStatus: string;

Defined in: packages/registry/src/index.ts:250

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:252

ttl: number;

Defined in: packages/registry/src/index.ts:249

txtRecord: string;

Defined in: packages/registry/src/index.ts:248


Defined in: packages/registry/src/index.ts:325

optional agentFQDN?: string;

Defined in: packages/registry/src/index.ts:327

expectedCanonicalContent: string;

Defined in: packages/registry/src/index.ts:326

signingKid: string;

Defined in: packages/registry/src/index.ts:328


Defined in: packages/registry/src/index.ts:122

optional baseUrl?: string;

Defined in: packages/registry/src/index.ts:124

Registry API base URL: HTTPS, or HTTP on loopback. Defaults to DEFAULT_REGISTRY_URL.

optional credentials?: RequestCredentials;

Defined in: packages/registry/src/index.ts:128

optional fetch?: {
(input, init?): Promise<Response>;
(input, init?): Promise<Response>;
};

Defined in: packages/registry/src/index.ts:129

(input, init?): Promise<Response>;

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>;

MDN Reference

string | URL | Request

RequestInit

Promise<Response>

optional headers?: HeadersInit;

Defined in: packages/registry/src/index.ts:127

optional token?: string;

Defined in: packages/registry/src/index.ts:126

Owner API key or session token, sent as Authorization: Bearer.


Defined in: packages/registry/src/index.ts:278

entryHash: string;

Defined in: packages/registry/src/index.ts:280

optional errorCode?: string;

Defined in: packages/registry/src/index.ts:283

optional index?: number;

Defined in: packages/registry/src/index.ts:281

optional keyId?: string;

Defined in: packages/registry/src/index.ts:284

optional logRef?: string;

Defined in: packages/registry/src/index.ts:282

optional raw?: unknown;

Defined in: packages/registry/src/index.ts:285

state: "rejected" | "pending" | "submitting" | "accepted";

Defined in: packages/registry/src/index.ts:279


Defined in: packages/registry/src/index.ts:173

signature: string | Uint8Array<ArrayBufferLike>;

Defined in: packages/registry/src/index.ts:174

type IdentitySignatureAlgorithm = "EdDSA" | "ES256";

Defined in: packages/registry/src/index.ts:157


type PreparedEventSubmissionErrorState = "pending" | "rejected" | "indeterminate";

Defined in: packages/registry/src/index.ts:288


type PublicationAuthority = "client" | "registry";

Defined in: packages/registry/src/index.ts:38


type PublishToRegistryOptions = PublishClientControlledRecordOptions;

Defined in: packages/registry/src/index.ts:859

Use PublishClientControlledRecordOptions.


type RegistryRevocationReason = "owner_request" | "key_compromise" | "policy_violation";

Defined in: packages/registry/src/index.ts:271

Owner-authorized reason codes accepted by the registry revoke API. The registry publishes them as the protocol reasons cessationOfOperation, keyCompromise and policyViolation. policy_violation permanently blocks re-registration of the domain and needs an org admin.

const DEFAULT_REGISTRY_URL: "http://127.0.0.1:7755" = 'http://127.0.0.1:7755';

Defined in: packages/registry/src/index.ts:120

Default registry base URL: the local registry started by dnsid local up. Hosted use requires an explicit baseUrl (see createRegistryClientFromEnvironment() in @dnsid-ai/sdk/node, which reads DNSID_REGISTRY_URL).

function awaitRegistryManagedPublication(options): Promise<PublishedRecord>;

Defined in: packages/registry/src/index.ts:936

AwaitRegistryManagedPublicationOptions

Promise<PublishedRecord>


function publicationConfigFromResponse(value): PublicationConfig | undefined;

Defined in: packages/registry/src/index.ts:1136

Decodes the registry’s profile-known publication snapshot, including retained creation errors.

unknown

PublicationConfig | undefined


function publishClientControlledRecord(opts): Promise<PublishedRecord>;

Defined in: packages/registry/src/index.ts:900

PublishClientControlledRecordOptions

Promise<PublishedRecord>


function publishToRegistry(opts): Promise<PublishedRecord>;

Defined in: packages/registry/src/index.ts:932

PublishClientControlledRecordOptions

Promise<PublishedRecord>

Use publishClientControlledRecord().


function required(name, values): string;

Defined in: packages/registry/src/index.ts:1173

string

Record<string, string | undefined>

string


function requiredInt(name, values): number;

Defined in: packages/registry/src/index.ts:1178

string

Record<string, string | undefined>

number


function validateAgentRegistrationInput(input, requirePublicKey?): void;

Defined in: packages/registry/src/index.ts:133

Validates and normalizes a request in place; setup may supply its public key later.

AgentRegistrationInput

boolean = true

void