OpenAgentIDDocumentation
API referencenpm packages@openagentid/oas-vanilla
OpenAgentIDAPI reference

@openagentid/oas-vanilla/did

API contract shipped by @openagentid/oas-vanilla 1.0.2. Exact exports, signatures, dependencies and availability.

All packages · Runnable examples · Start an agent

ContractValue
Package@openagentid/oas-vanilla@1.0.2
Entry point@openagentid/oas-vanilla/did
AvailabilityPublished package
Reference sourcePublished JavaScript and JSDoc (inferred types)
Package enginesnode >=20.0.0

Before integrating

Publishes JavaScript with JSDoc, not TypeScript declarations. Inferred signatures are labeled separately.

This reference is generated from the integrity-verified npm archive for this exact version. Signatures describe the public contract; they are not standalone programs. Complete examples are checked separately.

This package ships JavaScript with JSDoc, not .d.ts files. The signatures below are inferred from that published source. An inferred any reflects missing type information in the package.

Import conditions

Use the public entry point above. The package resolves it to these shipped files; do not import its internal files directly.

ConditionPublished file
default./src/did/did.js

Exports

OasDid

A parsed and validated did:oas decentralized identifier.

An OasDid guarantees that the contained identifier conforms to the syntax rules in OAS Specification §3.1. It is the primary type for working with OAS identifiers throughout the SDK.

Format: did:oas:<namespace>:<kind>:<identifier> For compound kind agent:instance: did:oas:<namespace>:agent:instance:<identifier>

Signature
declare class OasDid {
  constructor(namespace: string, kind: string, identifier: string);
  static parse(input: string): OasDid;
  namespace: string;
  kind: string;
  identifier: string;
  isRoot: boolean;
  toString(): string;
  toJSON(): string;
}

Source: @openagentid/oas-vanilla@1.0.2, src/did/did.js:24.

Package requirements

This version declares no dependencies or peer dependencies.

Archive verification

Pinned integrity:

SHA-512 integrity
sha512-66sPTWDxCcQ55S9YvPbk4BxF8c92CNqAHOUv7jp1uC+3ygYzZKf5dbvK2/rQwvhP+3oi7T3n1Zn1K1PK99zvMQ==

Machine-readable API manifest · Coverage

On this page