Overview
All SDKs wrap the SINT Protocol REST API and connect to a running gateway server instance. They handle token serialization, request signing, and HTTP transport.TypeScript
@sint/client — Node.js and browser. 12 tests.Python
sint-client — Async-first via httpx. 1,962 lines.Go
sintclient — Idiomatic Go with context support.TypeScript SDK
Package:@sint/clientSource:
sdks/typescript/ in the sint-protocol monorepoTests: 12 tests in
__tests__/client.test.ts
Installation
Initialization
Methods
createToken(params)
createToken(params)
Creates a signed capability token authorizing an agent to perform an action.
intercept(params)
intercept(params)
Validates a token and records the request in the ledger. Call this before executing any privileged action.
delegateToken(params)
delegateToken(params)
Creates a child token from a parent token. The child token’s permissions must be equal to or more restrictive than the parent.
Revoking the parent token automatically invalidates all delegated child tokens.
revokeToken(tokenId)
revokeToken(tokenId)
Revokes a token immediately. Any subsequent
intercept() call with this token returns allowed: false.queryLedger(params)
queryLedger(params)
Retrieves ledger entries. All parameters are optional filters.
generateProof(params)
generateProof(params)
Generates a cryptographic proof that a specific action was allowed at a point in time. Useful for compliance audits.
Error Handling
Python SDK
Source:sdks/python/ in the sint-protocol repoSize: ~1,962 lines
Runtime: Python 3.9+
Transport: httpx (async and sync)
Installation
Classes
SintClient — Primary client for gateway operations.SintToken — Token model with validation and serialization methods.PolicyGateway — Higher-level interface for policy enforcement patterns.
Initialization
- Async
- Sync
Core Operations
Type Reference
Go SDK
Source:sdks/go/ in the sint-protocol repoPackage:
sintclientGo version: 1.21+
Installation
Initialization
Core Operations
Constants
SDK Feature Comparison
| Feature | TypeScript | Python | Go |
|---|---|---|---|
createToken | ✅ | ✅ | ✅ |
intercept | ✅ | ✅ | ✅ |
delegateToken | ✅ | ✅ | — |
revokeToken | ✅ | ✅ | — |
queryLedger | ✅ | ✅ | ✅ |
generateProof | ✅ | ✅ | — |
| Async support | ✅ | ✅ | ✅ (context) |
| Retry logic | ✅ | ✅ | — |
| Type safety | Full | Full (hints) | Full |
| Browser support | ✅ | ❌ | ❌ |
Go SDK is currently in active development.
delegateToken, revokeToken, and generateProof are planned for the next release. Track progress in GitHub Issues.