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.
Install
Section titled “Install”npm install @dnsid-ai/registry @dnsid-ai/protocolExample
Section titled “Example”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.
Unified registration and recovery
Section titled “Unified registration and recovery”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.
Classes
Section titled “Classes”PreparedEventSubmissionError
Section titled “PreparedEventSubmissionError”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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PreparedEventSubmissionError(options): PreparedEventSubmissionError;Defined in: packages/registry/src/index.ts:307
Parameters
Section titled “Parameters”options
Section titled “options”string
httpStatus
Section titled “httpStatus”number
message
Section titled “message”string
retryable
Section titled “retryable”boolean
retryWithSameBytes
Section titled “retryWithSameBytes”boolean
PreparedEventSubmissionErrorState
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”cause?
Section titled “cause?”optional cause?: unknown;Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”Error.causereadonly code: string;Defined in: packages/registry/src/index.ts:301
httpStatus
Section titled “httpStatus”readonly httpStatus: number;Defined in: packages/registry/src/index.ts:302
message
Section titled “message”message: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”Error.nameretryable
Section titled “retryable”readonly retryable: boolean;Defined in: packages/registry/src/index.ts:304
retryWithSameBytes
Section titled “retryWithSameBytes”readonly retryWithSameBytes: boolean;Defined in: packages/registry/src/index.ts:305
stack?
Section titled “stack?”optional stack?: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.stackreadonly state: PreparedEventSubmissionErrorState;Defined in: packages/registry/src/index.ts:303
stackTraceLimit
Section titled “stackTraceLimit”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.
Inherited from
Section titled “Inherited from”Error.stackTraceLimitMethods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”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();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTraceprepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err, stackTraces): any;Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTraceRegistrationError
Section titled “RegistrationError”Defined in: packages/registry/src/index.ts:62
Registration may have succeeded; reconcile rather than retrying with a new key.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RegistrationError( idempotencyKey, domain, cause, input?, creation?, httpStatus?, code?): RegistrationError;Defined in: packages/registry/src/index.ts:63
Parameters
Section titled “Parameters”idempotencyKey
Section titled “idempotencyKey”string | undefined
domain
Section titled “domain”string | undefined
Assigned domain, when the creation response was successfully parsed.
unknown
input?
Section titled “input?”creation?
Section titled “creation?”Record<string, unknown>
Decoded creation response, retained even if validation failed; not trust evidence.
httpStatus?
Section titled “httpStatus?”number
string
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”cause?
Section titled “cause?”optional cause?: unknown;Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”Error.causereadonly optional code?: string;Defined in: packages/registry/src/index.ts:72
creation?
Section titled “creation?”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.
domain
Section titled “domain”readonly domain: string | undefined;Defined in: packages/registry/src/index.ts:66
Assigned domain, when the creation response was successfully parsed.
httpStatus?
Section titled “httpStatus?”readonly optional httpStatus?: number;Defined in: packages/registry/src/index.ts:71
idempotencyKey
Section titled “idempotencyKey”readonly idempotencyKey: string | undefined;Defined in: packages/registry/src/index.ts:64
input?
Section titled “input?”readonly optional input?: AgentRegistrationInput;Defined in: packages/registry/src/index.ts:68
message
Section titled “message”message: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”Error.namestack?
Section titled “stack?”optional stack?: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.stackstackTraceLimit
Section titled “stackTraceLimit”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.
Inherited from
Section titled “Inherited from”Error.stackTraceLimitMethods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”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();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTraceprepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err, stackTraces): any;Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTraceRegistryClient
Section titled “RegistryClient”Defined in: packages/registry/src/index.ts:331
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RegistryClient(options?): RegistryClient;Defined in: packages/registry/src/index.ts:338
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Methods
Section titled “Methods”cancelAgent()
Section titled “cancelAgent()”cancelAgent(domain): Promise<LifecycleResult>;Defined in: packages/registry/src/index.ts:767
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<LifecycleResult>
canonicalRecordContent()
Section titled “canonicalRecordContent()”canonicalRecordContent(domain, signingKid): Promise<CanonicalRecordContentResponse>;Defined in: packages/registry/src/index.ts:583
Parameters
Section titled “Parameters”domain
Section titled “domain”string
signingKid
Section titled “signingKid”string
Returns
Section titled “Returns”Promise<CanonicalRecordContentResponse>
getAgent()
Section titled “getAgent()”getAgent(domain): Promise<AgentRegistration | undefined>;Defined in: packages/registry/src/index.ts:516
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<AgentRegistration | undefined>
getAgentStatus()
Section titled “getAgentStatus()”getAgentStatus(domain): Promise<AgentRegistration | undefined>;Defined in: packages/registry/src/index.ts:662
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<AgentRegistration | undefined>
Deprecated
Section titled “Deprecated”Use getRegistration().
getIdentityRecordToSign()
Section titled “getIdentityRecordToSign()”getIdentityRecordToSign( domain, agentFQDN?, signingKid?): Promise<IdentityRecordToSign>;Defined in: packages/registry/src/index.ts:553
Parameters
Section titled “Parameters”domain
Section titled “domain”string
agentFQDN?
Section titled “agentFQDN?”string = domain
signingKid?
Section titled “signingKid?”string
Returns
Section titled “Returns”Promise<IdentityRecordToSign>
getOrganizationOnboarding()
Section titled “getOrganizationOnboarding()”getOrganizationOnboarding(options?): Promise<OrganizationOnboardingResponse>;Defined in: packages/registry/src/index.ts:597
Reads existing authenticated onboarding without creating identities or retrying anonymously.
Parameters
Section titled “Parameters”options?
Section titled “options?”governanceId?
Section titled “governanceId?”string
organizationId?
Section titled “organizationId?”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<OrganizationOnboardingResponse>
getRegistration()
Section titled “getRegistration()”getRegistration(domain, options?): Promise<AgentRegistration | undefined>;Defined in: packages/registry/src/index.ts:635
Parameters
Section titled “Parameters”domain
Section titled “domain”string
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<AgentRegistration | undefined>
prepareIssuance()
Section titled “prepareIssuance()”prepareIssuance( domain, idempotencyKey, options?): Promise<PreparedRegistryEvent>;Defined in: packages/registry/src/index.ts:666
Parameters
Section titled “Parameters”domain
Section titled “domain”string
idempotencyKey
Section titled “idempotencyKey”string
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<PreparedRegistryEvent>
prepareKeyRotation()
Section titled “prepareKeyRotation()”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.
Parameters
Section titled “Parameters”domain
Section titled “domain”string
request
Section titled “request”idempotencyKey
Section titled “idempotencyKey”string
Returns
Section titled “Returns”Promise<PreparedRegistryEvent>
publishTxtRecordWithSigner()
Section titled “publishTxtRecordWithSigner()”publishTxtRecordWithSigner( domain, sign, validation): Promise<PublishedRecord>;Defined in: packages/registry/src/index.ts:538
Parameters
Section titled “Parameters”domain
Section titled “domain”string
(canonical) => Promise<string | Uint8Array<ArrayBufferLike>>
validation
Section titled “validation”PublishTxtRecordValidationOptions
Returns
Section titled “Returns”Promise<PublishedRecord>
registerAgent()
Section titled “registerAgent()”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.
Parameters
Section titled “Parameters”idempotencyKey?
Section titled “idempotencyKey?”string | undefined
Returns
Section titled “Returns”Promise<AgentRegistration>
registerInZone()
Section titled “registerInZone()”registerInZone(input): Promise<AgentRegistration>;Defined in: packages/registry/src/index.ts:447
Parameters
Section titled “Parameters”Omit<AgentRegistrationInput, "domain" | "managed"> & object
Returns
Section titled “Returns”Promise<AgentRegistration>
registerLiveAgent()
Section titled “registerLiveAgent()”registerLiveAgent( input, idempotencyKey, options?): Promise<LiveProvisioningResponse>;Defined in: packages/registry/src/index.ts:406
Parameters
Section titled “Parameters”idempotencyKey
Section titled “idempotencyKey”string
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<LiveProvisioningResponse>
registerSelfManagedAgent()
Section titled “registerSelfManagedAgent()”registerSelfManagedAgent(input): Promise<AgentRegistration>;Defined in: packages/registry/src/index.ts:443
Parameters
Section titled “Parameters”Omit<AgentRegistrationInput, "zoneId" | "managed"> & object
Returns
Section titled “Returns”Promise<AgentRegistration>
reissueLiveProof()
Section titled “reissueLiveProof()”reissueLiveProof( domain, requestId, publicKeyJwk, options?): Promise<LiveProofReissueResponse>;Defined in: packages/registry/src/index.ts:491
Parameters
Section titled “Parameters”domain
Section titled “domain”string
requestId
Section titled “requestId”string
publicKeyJwk
Section titled “publicKeyJwk”options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<LiveProofReissueResponse>
retireAgent()
Section titled “retireAgent()”retireAgent(domain, agentId): Promise<LifecycleResult>;Defined in: packages/registry/src/index.ts:761
Parameters
Section titled “Parameters”domain
Section titled “domain”string
agentId
Section titled “agentId”string
Returns
Section titled “Returns”Promise<LifecycleResult>
revokeAgent()
Section titled “revokeAgent()”revokeAgent( domain, agentId, reason): Promise<LifecycleResult>;Defined in: packages/registry/src/index.ts:747
Parameters
Section titled “Parameters”domain
Section titled “domain”string
agentId
Section titled “agentId”string
reason
Section titled “reason”Returns
Section titled “Returns”Promise<LifecycleResult>
submitChallengeSignature()
Section titled “submitChallengeSignature()”submitChallengeSignature(domain, input): Promise<LifecycleResult>;Defined in: packages/registry/src/index.ts:462
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<LifecycleResult>
submitIdentityRecordSignature()
Section titled “submitIdentityRecordSignature()”submitIdentityRecordSignature(domain, input): Promise<PublishedRecord>;Defined in: packages/registry/src/index.ts:588
Parameters
Section titled “Parameters”domain
Section titled “domain”string
SubmitIdentityRecordSignatureInput
Returns
Section titled “Returns”Promise<PublishedRecord>
submitLiveProof()
Section titled “submitLiveProof()”submitLiveProof( domain, input, options?): Promise<LiveProofResponse>;Defined in: packages/registry/src/index.ts:470
Parameters
Section titled “Parameters”domain
Section titled “domain”string
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<LiveProofResponse>
submitPreparedEvent()
Section titled “submitPreparedEvent()”submitPreparedEvent( domain, entryBytes, idempotencyKey, options?): Promise<SubmissionResult>;Defined in: packages/registry/src/index.ts:696
Parameters
Section titled “Parameters”domain
Section titled “domain”string
entryBytes
Section titled “entryBytes”Uint8Array
idempotencyKey
Section titled “idempotencyKey”string
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<SubmissionResult>
triggerVerification()
Section titled “triggerVerification()”triggerVerification(domain): Promise<AgentRegistration>;Defined in: packages/registry/src/index.ts:455
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<AgentRegistration>
unregisterAgent()
Section titled “unregisterAgent()”unregisterAgent(domain): Promise<void>;Defined in: packages/registry/src/index.ts:773
Best-effort unregister; unsupported and already-absent agents are successful no-ops.
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<void>
verifyAgent()
Section titled “verifyAgent()”verifyAgent(domain): Promise<AgentRegistration>;Defined in: packages/registry/src/index.ts:451
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<AgentRegistration>
waitForStatus()
Section titled “waitForStatus()”waitForStatus( domain, predicate, options?): Promise<AgentRegistration>;Defined in: packages/registry/src/index.ts:520
Parameters
Section titled “Parameters”domain
Section titled “domain”string
predicate
Section titled “predicate”(status) => boolean
options?
Section titled “options?”intervalMs?
Section titled “intervalMs?”number
timeoutMs?
Section titled “timeoutMs?”number
Returns
Section titled “Returns”Promise<AgentRegistration>
RegistryRequestError
Section titled “RegistryRequestError”Defined in: packages/registry/src/index.ts:79
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RegistryRequestError( httpStatus, code, message): RegistryRequestError;Defined in: packages/registry/src/index.ts:80
Parameters
Section titled “Parameters”httpStatus
Section titled “httpStatus”number
string | undefined
message
Section titled “message”string
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”cause?
Section titled “cause?”optional cause?: unknown;Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”Error.causereadonly code: string | undefined;Defined in: packages/registry/src/index.ts:80
httpStatus
Section titled “httpStatus”readonly httpStatus: number;Defined in: packages/registry/src/index.ts:80
message
Section titled “message”message: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”Error.namestack?
Section titled “stack?”optional stack?: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.stackstackTraceLimit
Section titled “stackTraceLimit”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.
Inherited from
Section titled “Inherited from”Error.stackTraceLimitMethods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”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();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTraceprepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err, stackTraces): any;Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTraceRegistryWorkflowError
Section titled “RegistryWorkflowError”Defined in: packages/registry/src/index.ts:890
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RegistryWorkflowError(message, registration): RegistryWorkflowError;Defined in: packages/registry/src/index.ts:893
Parameters
Section titled “Parameters”message
Section titled “message”string
registration
Section titled “registration”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”cause?
Section titled “cause?”optional cause?: unknown;Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”Error.causemessage
Section titled “message”message: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”Error.nameregistration
Section titled “registration”readonly registration: AgentRegistration;Defined in: packages/registry/src/index.ts:891
stack?
Section titled “stack?”optional stack?: string;Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.stackstackTraceLimit
Section titled “stackTraceLimit”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.
Inherited from
Section titled “Inherited from”Error.stackTraceLimitMethods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”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();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTraceprepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err, stackTraces): any;Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTraceInterfaces
Section titled “Interfaces”AgentRegistration
Section titled “AgentRegistration”Defined in: packages/registry/src/index.ts:220
Properties
Section titled “Properties”dnsPublished?
Section titled “dnsPublished?”optional dnsPublished?: boolean;Defined in: packages/registry/src/index.ts:225
domain
Section titled “domain”domain: string;Defined in: packages/registry/src/index.ts:222
id: string;Defined in: packages/registry/src/index.ts:221
oidcIssuerUrl?
Section titled “oidcIssuerUrl?”optional oidcIssuerUrl?: string;Defined in: packages/registry/src/index.ts:228
protocolStatus?
Section titled “protocolStatus?”optional protocolStatus?: AgentStatus;Defined in: packages/registry/src/index.ts:226
publicationAuthority
Section titled “publicationAuthority”publicationAuthority: PublicationAuthority;Defined in: packages/registry/src/index.ts:223
publicationConfig?
Section titled “publicationConfig?”optional publicationConfig?: PublicationConfig;Defined in: packages/registry/src/index.ts:229
optional raw?: unknown;Defined in: packages/registry/src/index.ts:230
registryStatus
Section titled “registryStatus”registryStatus: string;Defined in: packages/registry/src/index.ts:224
registryUrl
Section titled “registryUrl”registryUrl: string;Defined in: packages/registry/src/index.ts:227
AgentRegistrationInput
Section titled “AgentRegistrationInput”Defined in: packages/registry/src/index.ts:40
Properties
Section titled “Properties”capabilitiesUrl?
Section titled “capabilitiesUrl?”optional capabilitiesUrl?: string;Defined in: packages/registry/src/index.ts:56
domain?
Section titled “domain?”optional domain?: string;Defined in: packages/registry/src/index.ts:41
environment?
Section titled “environment?”optional environment?: "production" | "sandbox";Defined in: packages/registry/src/index.ts:52
Legacy registry selector; omitted for unified registration.
governanceDomain?
Section titled “governanceDomain?”optional governanceDomain?: string;Defined in: packages/registry/src/index.ts:43
Expected accountable GI; without a domain, selects an authorized root.
idempotencyKey?
Section titled “idempotencyKey?”optional idempotencyKey?: string;Defined in: packages/registry/src/index.ts:58
Persist before registration; reuse with the same input when reconciling a failed attempt.
managed?
Section titled “managed?”optional managed?: boolean;Defined in: packages/registry/src/index.ts:54
Legacy registry-managed selector; hosting is resolved by the registry.
metadata?
Section titled “metadata?”optional metadata?: Record<string, unknown>;Defined in: packages/registry/src/index.ts:49
Deprecated
Section titled “Deprecated”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.
publicKeyJwk?
Section titled “publicKeyJwk?”optional publicKeyJwk?: DnsIdJWK;Defined in: packages/registry/src/index.ts:50
rootDomain?
Section titled “rootDomain?”optional rootDomain?: string;Defined in: packages/registry/src/index.ts:45
Caller-owned active delegated root for an assigned name, not a zone ID.
zoneId?
Section titled “zoneId?”optional zoneId?: string;Defined in: packages/registry/src/index.ts:55
AwaitRegistryManagedPublicationOptions
Section titled “AwaitRegistryManagedPublicationOptions”Defined in: packages/registry/src/index.ts:875
Properties
Section titled “Properties”domain
Section titled “domain”domain: string;Defined in: packages/registry/src/index.ts:876
expectedRegistration?
Section titled “expectedRegistration?”optional expectedRegistration?: AgentRegistration;Defined in: packages/registry/src/index.ts:885
Immutable creation facts to check on every authenticated observation.
identityManager
Section titled “identityManager”identityManager: IdentityManager;Defined in: packages/registry/src/index.ts:879
The local identity’s manager; its protocol evidence (not acceptance) confirms publication.
intervalMs?
Section titled “intervalMs?”optional intervalMs?: number;Defined in: packages/registry/src/index.ts:881
onObservation?
Section titled “onObservation?”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.
Parameters
Section titled “Parameters”registration
Section titled “registration”signal
Section titled “signal”AbortSignal
Returns
Section titled “Returns”Promise<void>
publishProfile?
Section titled “publishProfile?”optional publishProfile?: string;Defined in: packages/registry/src/index.ts:880
registryClient
Section titled “registryClient”registryClient: RegistryClient;Defined in: packages/registry/src/index.ts:877
signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: packages/registry/src/index.ts:883
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: packages/registry/src/index.ts:882
CanonicalRecordContentResponse
Section titled “CanonicalRecordContentResponse”Defined in: packages/registry/src/index.ts:159
Properties
Section titled “Properties”canonical
Section titled “canonical”canonical: string;Defined in: packages/registry/src/index.ts:160
signingKid
Section titled “signingKid”signingKid: string;Defined in: packages/registry/src/index.ts:161
ChallengeSignatureInput
Section titled “ChallengeSignatureInput”Defined in: packages/registry/src/index.ts:177
Properties
Section titled “Properties”nonce: string;Defined in: packages/registry/src/index.ts:178
signature
Section titled “signature”signature: string | Uint8Array<ArrayBufferLike>;Defined in: packages/registry/src/index.ts:179
IdentityRecordToSign
Section titled “IdentityRecordToSign”Defined in: packages/registry/src/index.ts:164
Properties
Section titled “Properties”canonicalContent
Section titled “canonicalContent”canonicalContent: string;Defined in: packages/registry/src/index.ts:166
domain
Section titled “domain”domain: string;Defined in: packages/registry/src/index.ts:165
expiresAt?
Section titled “expiresAt?”optional expiresAt?: Date;Defined in: packages/registry/src/index.ts:169
optional raw?: unknown;Defined in: packages/registry/src/index.ts:170
signingKid
Section titled “signingKid”signingKid: string;Defined in: packages/registry/src/index.ts:167
optional tags?: Record<string, string>;Defined in: packages/registry/src/index.ts:168
KeyRotationPreparationRequest
Section titled “KeyRotationPreparationRequest”Defined in: packages/registry/src/index.ts:260
Properties
Section titled “Properties”previousKeyId
Section titled “previousKeyId”previousKeyId: string;Defined in: packages/registry/src/index.ts:261
publicKey
Section titled “publicKey”publicKey: DnsIdJWK;Defined in: packages/registry/src/index.ts:262
LifecycleResult
Section titled “LifecycleResult”Defined in: packages/registry/src/index.ts:203
Properties
Section titled “Properties”id: string;Defined in: packages/registry/src/index.ts:204
optional raw?: unknown;Defined in: packages/registry/src/index.ts:207
registryStatus
Section titled “registryStatus”registryStatus: string;Defined in: packages/registry/src/index.ts:205
statusNote?
Section titled “statusNote?”optional statusNote?: string;Defined in: packages/registry/src/index.ts:206
LiveAgentRegistrationInput
Section titled “LiveAgentRegistrationInput”Defined in: packages/registry/src/index.ts:86
Properties
Section titled “Properties”capabilitiesUrl?
Section titled “capabilitiesUrl?”optional capabilitiesUrl?: string;Defined in: packages/registry/src/index.ts:90
environment?
Section titled “environment?”optional environment?: "production";Defined in: packages/registry/src/index.ts:88
optional name?: string;Defined in: packages/registry/src/index.ts:89
publicKeyJwk
Section titled “publicKeyJwk”publicKeyJwk: DnsIdJWK;Defined in: packages/registry/src/index.ts:87
LiveChallengeTranscript
Section titled “LiveChallengeTranscript”Defined in: packages/registry/src/index.ts:93
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId: string;Defined in: packages/registry/src/index.ts:96
expiresAt
Section titled “expiresAt”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
Section titled “protocol”protocol: "dnsid-live-provisioning-pop/v1";Defined in: packages/registry/src/index.ts:94
LiveProofInput
Section titled “LiveProofInput”Defined in: packages/registry/src/index.ts:182
Properties
Section titled “Properties”challenge
Section titled “challenge”challenge: string;Defined in: packages/registry/src/index.ts:184
publicKeyJwk
Section titled “publicKeyJwk”publicKeyJwk: DnsIdJWK;Defined in: packages/registry/src/index.ts:185
requestId
Section titled “requestId”requestId: string;Defined in: packages/registry/src/index.ts:183
signature
Section titled “signature”signature: string | Uint8Array<ArrayBufferLike>;Defined in: packages/registry/src/index.ts:186
LiveProofReissueResponse
Section titled “LiveProofReissueResponse”Defined in: packages/registry/src/index.ts:196
Extends
Section titled “Extends”Properties
Section titled “Properties”agentId
Section titled “agentId”agentId: string;Defined in: packages/registry/src/index.ts:191
Inherited from
Section titled “Inherited from”challenge
Section titled “challenge”challenge: string;Defined in: packages/registry/src/index.ts:197
challengeMessage
Section titled “challengeMessage”challengeMessage: string;Defined in: packages/registry/src/index.ts:198
challengeTranscript
Section titled “challengeTranscript”challengeTranscript: LiveChallengeTranscript;Defined in: packages/registry/src/index.ts:200
domain
Section titled “domain”domain: string;Defined in: packages/registry/src/index.ts:199
optional raw?: unknown;Defined in: packages/registry/src/index.ts:193
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”requestId: string;Defined in: packages/registry/src/index.ts:190
Inherited from
Section titled “Inherited from”status
Section titled “status”status: string;Defined in: packages/registry/src/index.ts:192
Inherited from
Section titled “Inherited from”LiveProofResponse
Section titled “LiveProofResponse”Defined in: packages/registry/src/index.ts:189
Extended by
Section titled “Extended by”Properties
Section titled “Properties”agentId
Section titled “agentId”agentId: string;Defined in: packages/registry/src/index.ts:191
optional raw?: unknown;Defined in: packages/registry/src/index.ts:193
requestId
Section titled “requestId”requestId: string;Defined in: packages/registry/src/index.ts:190
status
Section titled “status”status: string;Defined in: packages/registry/src/index.ts:192
LiveProvisioningResponse
Section titled “LiveProvisioningResponse”Defined in: packages/registry/src/index.ts:103
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId: string;Defined in: packages/registry/src/index.ts:105
challenge
Section titled “challenge”challenge: string;Defined in: packages/registry/src/index.ts:107
challengeMessage
Section titled “challengeMessage”challengeMessage: string;Defined in: packages/registry/src/index.ts:108
challengeTranscript?
Section titled “challengeTranscript?”optional challengeTranscript?: LiveChallengeTranscript;Defined in: packages/registry/src/index.ts:111
domain?
Section titled “domain?”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
Section titled “requestId”requestId: string;Defined in: packages/registry/src/index.ts:104
status
Section titled “status”status: string;Defined in: packages/registry/src/index.ts:106
OrganizationOnboardingResponse
Section titled “OrganizationOnboardingResponse”Defined in: packages/registry/src/index.ts:211
Authenticated organization onboarding; readiness is validated by managed setup.
Properties
Section titled “Properties”entityKeyStatus?
Section titled “entityKeyStatus?”optional entityKeyStatus?: string;Defined in: packages/registry/src/index.ts:215
optional gi?: object;Defined in: packages/registry/src/index.ts:214
domain?
Section titled “domain?”optional domain?: string;gateAuthorized?
Section titled “gateAuthorized?”optional gateAuthorized?: boolean;state?
Section titled “state?”optional state?: string;governanceId?
Section titled “governanceId?”optional governanceId?: string;Defined in: packages/registry/src/index.ts:213
organizationId
Section titled “organizationId”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.
PreparedRegistryEvent
Section titled “PreparedRegistryEvent”Defined in: packages/registry/src/index.ts:256
Untrusted exact response bytes; the log binding must validate them before signing.
Properties
Section titled “Properties”entryBytes
Section titled “entryBytes”entryBytes: Uint8Array;Defined in: packages/registry/src/index.ts:257
PublicationConfig
Section titled “PublicationConfig”Defined in: packages/registry/src/index.ts:234
Authoritative profile-known values used by the registry to prepare an identity record.
Properties
Section titled “Properties”capabilitiesUrl?
Section titled “capabilitiesUrl?”optional capabilitiesUrl?: string;Defined in: packages/registry/src/index.ts:241
ekUrl: string;Defined in: packages/registry/src/index.ts:238
governanceId
Section titled “governanceId”governanceId: string;Defined in: packages/registry/src/index.ts:236
kuUrl: string;Defined in: packages/registry/src/index.ts:237
logRef
Section titled “logRef”logRef: string;Defined in: packages/registry/src/index.ts:239
maxKeyAge?
Section titled “maxKeyAge?”optional maxKeyAge?: MaxKeyAge;Defined in: packages/registry/src/index.ts:242
publishProfile
Section titled “publishProfile”publishProfile: string;Defined in: packages/registry/src/index.ts:235
statusUrl
Section titled “statusUrl”statusUrl: string;Defined in: packages/registry/src/index.ts:240
PublishClientControlledRecordOptions
Section titled “PublishClientControlledRecordOptions”Defined in: packages/registry/src/index.ts:850
Properties
Section titled “Properties”config
Section titled “config”config: IdentityConfig;Defined in: packages/registry/src/index.ts:851
effectiveMaxKeyAge?
Section titled “effectiveMaxKeyAge?”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
Section titled “entityKeyProvider”entityKeyProvider: KeyProvider;Defined in: packages/registry/src/index.ts:852
registryClient
Section titled “registryClient”registryClient: RegistryClient;Defined in: packages/registry/src/index.ts:853
PublishedRecord
Section titled “PublishedRecord”Defined in: packages/registry/src/index.ts:245
Properties
Section titled “Properties”domain
Section titled “domain”domain: string;Defined in: packages/registry/src/index.ts:246
ownerName
Section titled “ownerName”ownerName: string;Defined in: packages/registry/src/index.ts:247
protocolStatus?
Section titled “protocolStatus?”optional protocolStatus?: AgentStatus;Defined in: packages/registry/src/index.ts:251
publicationStatus
Section titled “publicationStatus”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
Section titled “txtRecord”txtRecord: string;Defined in: packages/registry/src/index.ts:248
PublishTxtRecordValidationOptions
Section titled “PublishTxtRecordValidationOptions”Defined in: packages/registry/src/index.ts:325
Properties
Section titled “Properties”agentFQDN?
Section titled “agentFQDN?”optional agentFQDN?: string;Defined in: packages/registry/src/index.ts:327
expectedCanonicalContent
Section titled “expectedCanonicalContent”expectedCanonicalContent: string;Defined in: packages/registry/src/index.ts:326
signingKid
Section titled “signingKid”signingKid: string;Defined in: packages/registry/src/index.ts:328
RegistryClientOptions
Section titled “RegistryClientOptions”Defined in: packages/registry/src/index.ts:122
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”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.
credentials?
Section titled “credentials?”optional credentials?: RequestCredentials;Defined in: packages/registry/src/index.ts:128
fetch?
Section titled “fetch?”optional fetch?: { (input, init?): Promise<Response>; (input, init?): Promise<Response>;};Defined in: packages/registry/src/index.ts:129
Call Signature
Section titled “Call Signature”(input, init?): Promise<Response>;Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(input, init?): Promise<Response>;Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
headers?
Section titled “headers?”optional headers?: HeadersInit;Defined in: packages/registry/src/index.ts:127
token?
Section titled “token?”optional token?: string;Defined in: packages/registry/src/index.ts:126
Owner API key or session token, sent as Authorization: Bearer.
SubmissionResult
Section titled “SubmissionResult”Defined in: packages/registry/src/index.ts:278
Properties
Section titled “Properties”entryHash
Section titled “entryHash”entryHash: string;Defined in: packages/registry/src/index.ts:280
errorCode?
Section titled “errorCode?”optional errorCode?: string;Defined in: packages/registry/src/index.ts:283
index?
Section titled “index?”optional index?: number;Defined in: packages/registry/src/index.ts:281
keyId?
Section titled “keyId?”optional keyId?: string;Defined in: packages/registry/src/index.ts:284
logRef?
Section titled “logRef?”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
SubmitIdentityRecordSignatureInput
Section titled “SubmitIdentityRecordSignatureInput”Defined in: packages/registry/src/index.ts:173
Properties
Section titled “Properties”signature
Section titled “signature”signature: string | Uint8Array<ArrayBufferLike>;Defined in: packages/registry/src/index.ts:174
Type Aliases
Section titled “Type Aliases”IdentitySignatureAlgorithm
Section titled “IdentitySignatureAlgorithm”type IdentitySignatureAlgorithm = "EdDSA" | "ES256";Defined in: packages/registry/src/index.ts:157
PreparedEventSubmissionErrorState
Section titled “PreparedEventSubmissionErrorState”type PreparedEventSubmissionErrorState = "pending" | "rejected" | "indeterminate";Defined in: packages/registry/src/index.ts:288
PublicationAuthority
Section titled “PublicationAuthority”type PublicationAuthority = "client" | "registry";Defined in: packages/registry/src/index.ts:38
PublishToRegistryOptions
Section titled “PublishToRegistryOptions”type PublishToRegistryOptions = PublishClientControlledRecordOptions;Defined in: packages/registry/src/index.ts:859
Deprecated
Section titled “Deprecated”Use PublishClientControlledRecordOptions.
RegistryRevocationReason
Section titled “RegistryRevocationReason”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.
Variables
Section titled “Variables”DEFAULT_REGISTRY_URL
Section titled “DEFAULT_REGISTRY_URL”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).
Functions
Section titled “Functions”awaitRegistryManagedPublication()
Section titled “awaitRegistryManagedPublication()”function awaitRegistryManagedPublication(options): Promise<PublishedRecord>;Defined in: packages/registry/src/index.ts:936
Parameters
Section titled “Parameters”options
Section titled “options”AwaitRegistryManagedPublicationOptions
Returns
Section titled “Returns”Promise<PublishedRecord>
publicationConfigFromResponse()
Section titled “publicationConfigFromResponse()”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.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”PublicationConfig | undefined
publishClientControlledRecord()
Section titled “publishClientControlledRecord()”function publishClientControlledRecord(opts): Promise<PublishedRecord>;Defined in: packages/registry/src/index.ts:900
Parameters
Section titled “Parameters”PublishClientControlledRecordOptions
Returns
Section titled “Returns”Promise<PublishedRecord>
publishToRegistry()
Section titled “publishToRegistry()”function publishToRegistry(opts): Promise<PublishedRecord>;Defined in: packages/registry/src/index.ts:932
Parameters
Section titled “Parameters”PublishClientControlledRecordOptions
Returns
Section titled “Returns”Promise<PublishedRecord>
Deprecated
Section titled “Deprecated”Use publishClientControlledRecord().
required()
Section titled “required()”function required(name, values): string;Defined in: packages/registry/src/index.ts:1173
Parameters
Section titled “Parameters”string
values
Section titled “values”Record<string, string | undefined>
Returns
Section titled “Returns”string
requiredInt()
Section titled “requiredInt()”function requiredInt(name, values): number;Defined in: packages/registry/src/index.ts:1178
Parameters
Section titled “Parameters”string
values
Section titled “values”Record<string, string | undefined>
Returns
Section titled “Returns”number
validateAgentRegistrationInput()
Section titled “validateAgentRegistrationInput()”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.
Parameters
Section titled “Parameters”requirePublicKey?
Section titled “requirePublicKey?”boolean = true
Returns
Section titled “Returns”void