OpenAgentID documentation
Source referencesTypeScript reference

@openagentid/sdk-testing API

Exported TypeScript types, signatures and source documentation.

Package manifest, subpaths, and integration guide.

This reference resolves exported symbols from the package entry point with the TypeScript parser/type checker. It includes declarations and inferred types, not implementation bodies. External dependencies unavailable to the extraction environment can remain unresolved; this is source documentation, not proof that all packages typecheck or are published.

stubArsenalClient

In-memory Arsenal client for tests. Echoes a deterministic proxy URL per provider without minting any credential.

export declare const stubArsenalClient: () => ArsenalClient;

Source: openagent-sdk/sdks/testing/src/index.ts:115.

createTestingConfig

An {@link OpenAgentConfig } with all three in-memory backends wired in.

The production SDK requires real protocol clients and fails closed when one is missing; tests opt into the fakes explicitly through this helper.

export declare const createTestingConfig: (overrides?: Partial<OpenAgentConfig>) => OpenAgentConfig;

Source: openagent-sdk/sdks/testing/src/index.ts:218.

StubIdentityProvider

In-memory identity provider for tests.

Generates deterministic-looking DIDs and public keys. NOT cryptographically sound for production - signChallenge returns a tagged base64 blob, not an Ed25519 signature.

export declare class StubIdentityProvider {
  constructor(namespace?: string): StubIdentityProvider;
  createAgentIdentity(input: CreateAgentInput): Promise<IdentityDocument>;
  resolve(did: Did): Promise<IdentityDocument>;
  signChallenge(did: Did, challenge: Uint8Array): Promise<SignedAssertion>;
  publicKey(did: Did): Promise<string>;
}

Source: openagent-sdk/sdks/testing/src/index.ts:51.

StubVerificationClient

In-memory verification client for tests.

Accepts any request carrying Authorization: OpenAgent stub:&lt;did> or Authorization: Bearer stub:&lt;did> and returns a synthetic {@link AuthContext }. NOT a real verifier: any well-formed stub token passes.

export declare class StubVerificationClient {
  verifyRequest(req: Request, options?: VerifyRequestOptions): Promise<AuthContext>;
  issueChallenge(): Promise<{ challenge: Uint8Array; challengeId: string; }>;
  verifyChallengeResponse(params: { challengeId: string; agentDid: Did; signatureBase64: string; }): Promise<AuthContext>;
}

Source: openagent-sdk/sdks/testing/src/index.ts:138.

On this page