Skip to content

feat: add TypeScript SDK for Identity service#164

Open
kai-agent-free wants to merge 1 commit into
agntcy:mainfrom
kai-agent-free:feat/typescript-sdk
Open

feat: add TypeScript SDK for Identity service#164
kai-agent-free wants to merge 1 commit into
agntcy:mainfrom
kai-agent-free:feat/typescript-sdk

Conversation

@kai-agent-free
Copy link
Copy Markdown

Summary

Adds a TypeScript SDK at sdk/typescript/ — mirrors the existing Python SDK structure.

What's included

  • Full type definitions matching all 6 proto files (vc, id, issuer, mcp, errors, jwk)
  • IdentitySdk client class with REST methods:
    • VC Service: getBadge(), getWellKnownVcs(), verifyBadge(), publish(), search(), revoke()
    • ID Service: generateId(), resolveId()
    • Issuer Service: registerIssuer(), getIssuerWellKnown()
  • 22 tests (vitest) — type construction + mocked HTTP client tests
  • Dual ESM/CJS build via tsup
  • Package: @agntcy/identity-sdk

Context

Opened in response to issue #133 and the need for TypeScript-first agent tooling. Many agent frameworks (MCP, Vercel AI SDK, LangChain.js) are TypeScript — having a native SDK removes the need for Python interop.

Verification

cd sdk/typescript
npx tsc --noEmit  # ✅ clean
npx vitest run    # ✅ 22/22 passing

- TypeScript types matching all proto definitions (vc, id, issuer, mcp, errors, jwk)
- IdentitySdk client class with REST methods for VC, ID, and Issuer services
- ESM + CJS dual build via tsup
- 22 passing tests (vitest) covering types and all client methods
- README with usage examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant