@openagentid/oas-vanilla/lineage/verify
API contract shipped by @openagentid/oas-vanilla 1.0.2. Exact exports, signatures, dependencies and availability.
All packages · Runnable examples · Start an agent
| Contract | Value |
|---|---|
| Package | @openagentid/oas-vanilla@1.0.2 |
| Entry point | @openagentid/oas-vanilla/lineage/verify |
| Availability | Published package |
| Reference source | Published JavaScript and JSDoc (inferred types) |
| Package engines | node >=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.
| Condition | Published file |
|---|---|
| default | ./src/lineage/verify.js |
Exports
createVerifyLineageRequest
Builds a frozen authorization request. Structural-only or migration results cannot be converted into this request shape.
declare function createVerifyLineageRequest(document: import("../document/document.js").OasDocument, provider: any, options: VerifyConfig): Readonly<VerifyLineageRequest>;Source: @openagentid/oas-vanilla@1.0.2, src/lineage/verify.js:43.
verifyLineage
Verifies lineage against authenticated parent documents and local root trust policy. Embedded proof keys never establish authority.
declare function verifyLineage(request: VerifyLineageRequest): Promise<VerifyResult>;Source: @openagentid/oas-vanilla@1.0.2, src/lineage/verify.js:59.
VerifyLineageRequest
Type-only declaration; it is not a runtime value.
type VerifyLineageRequest = { document: import("../document/document.js").OasDocument; provider: any; options: VerifyConfig; };Source: @openagentid/oas-vanilla@1.0.2, src/lineage/verify.js:28.
VerifyResult
Result of a successful strict lineage verification.
declare class VerifyResult {
constructor(chainLength: any, humanRootDid: any, warnings?: any[]);
chainLength: any;
humanRootDid: any;
warnings: readonly any[];
isClean(): boolean;
}Source: @openagentid/oas-vanilla@1.0.2, src/lineage/verify.js:14.
Supporting declarations
These package-owned declarations are referenced by the exports above. Their presence here does not make them importable from this entry point. Import only the names in Exports.
OasDocument
An OAS Identity Document as defined in OAS Specification §5.
This is the canonical representation of an autonomous entity's identity, extending the W3C DID Document with OAS-specific properties.
declare class OasDocument {
constructor(fields: { context: string[]; id: string; controller: string; verificationMethod: VerificationMethod[]; authentication: string[]; assertionMethod?: string[]; capabilityInvocation?: string[]; capabilityDelegation?: string[]; service?: ServiceEndpoint[]; oasVersion: string; kind: string; name?: string | null; description?: string | null; lineage?: LineageSection | null; conformanceLevel: string; lifecycleStatus?: string | null; sequence: number; metadata: { created: string; updated?: string | null; version?: string | null;}; proof?: DocumentProof | null; revoked?: boolean | null; revokedAt?: string | null; });
static fromJSON(obj: object): OasDocument;
context: string[];
id: string;
controller: string;
verificationMethod: VerificationMethod[];
authentication: string[];
assertionMethod: string[];
capabilityInvocation: string[];
capabilityDelegation: string[];
service: ServiceEndpoint[];
oasVersion: string;
kind: string;
name: string;
description: string;
lineage: LineageSection;
conformanceLevel: string;
lifecycleStatus: string;
sequence: number;
metadata: { created: string; updated: string | null; version: string | null; };
proof: DocumentProof;
revoked: boolean;
revokedAt: string;
governance: GovernanceSection;
profile: ProfileSection;
contact: ContactSection;
calendar: CalendarSection;
operational: OperationalSection;
pricing: PricingSection;
interoperability: InteroperabilitySection;
reputation: ReputationSection;
compliance: ComplianceSection;
relationships: RelationshipsSection;
isRoot(): boolean;
isRevoked(): boolean;
canonicalDigest(): string;
primaryPublicKeyMultibase(): string | null;
findVerificationMethod(idOrFragment: string): VerificationMethod | null;
toJSON(): object;
}Source: @openagentid/oas-vanilla@1.0.2, src/document/document.js:66.
VerifyConfig
Configuration for the lineage verification algorithm.
All values have sensible defaults from the OAS Specification §8.3.
declare class VerifyConfig {
constructor();
maxGeneration: number;
perHopTimeoutMs: number;
totalTimeoutMs: number;
verifyDocumentSignatures: boolean;
trustAnchors: Readonly<TrustAnchor>[];
withMaxGeneration(depth: number): VerifyConfig;
withPerHopTimeout(ms: number): VerifyConfig;
withTotalTimeout(ms: number): VerifyConfig;
withVerifySignatures(verify: boolean): VerifyConfig;
withTrustAnchor(anchor: TrustAnchor | { rootDid: string; verificationMethod: string; publicKeyMultibase: string; documentDigest?: string; }): VerifyConfig;
withTrustAnchors(anchors: Array<TrustAnchor | object>): VerifyConfig;
}Source: @openagentid/oas-vanilla@1.0.2, src/lineage/config.js:39.
Package requirements
This version declares no dependencies or peer dependencies.
Archive verification
Pinned integrity:
sha512-66sPTWDxCcQ55S9YvPbk4BxF8c92CNqAHOUv7jp1uC+3ygYzZKf5dbvK2/rQwvhP+3oi7T3n1Zn1K1PK99zvMQ==