Type-safe, verifiable credential schemas for the decentralized creator economy
π Documentation β’ π Quick Start β’ π§ QuickType Integration β’ π Schema Categories
# Install QuickType
npm install -g quicktype
# Generate TypeScript for all schemas
quicktype --src schemas/v1/ --lang typescript --out types/all-schemas.ts
# Generate Python for business workflows
quicktype --src schemas/v1/business/ --lang python --out types/business.py
# Generate Go for identity management
quicktype --src schemas/v1/identity/ --lang go --out types/identity.go
# Generate C# for trust systems
quicktype --src schemas/v1/trust/ --lang csharp --out types/Trust.cs
# Generate Java for payments
quicktype --src schemas/v1/payments/ --lang java --out types/Payments.java
# Generate Rust for platform services
quicktype --src schemas/v1/platform/ --lang rust --out types/platform.rs
# Generate from hosted schemas
quicktype --src https://schemas.originvault.box/v1/business/ContractCredential.schema.json --lang typescript
# Generate entire category
quicktype --src https://schemas.originvault.box/v1/business/ --lang python --out business_types.py
- Browse and search all 90+ schemas with advanced filtering
- Real-time validation with detailed error messages
- Category-based navigation (Identity, Business, Content, Trust, Platform)
- Schema visualization with property details and examples
- Drag & drop interface for JSON Schema, TypeScript, or JSON files
- Multi-language support (10+ languages including TypeScript, Python, Go, C#, Java, Rust)
- Batch processing for multiple files simultaneously
- ZIP download for all generated code
- Real-time preview and validation
- W3C VC validation against standards and custom schemas
- Template generation for any credential type
- Presentation verification with detailed security reports
- JSON-LD context support for semantic web compatibility
- 50+ pre-built credential schemas ready for production
- C2PA manifest creation with cryptographic content hashing
- Provenance chain tracking for derivative and transformed content
- Content verification against original manifests and signatures
- Authenticity assertions with creator and tool metadata
- Standards compliance with Coalition for Content Provenance
- Decentralized trust management with DID-based identities
- Endorsement system with weighted trust scores and reputation
- Trust chain analysis and path finding algorithms
- Authority-based revocation with governance controls
- cheqd DTC integration for hierarchical trust management
- RESTful APIs for all platform functionality
- GraphQL endpoint with full schema introspection
- Real-time validation and processing APIs
- Batch processing endpoints for enterprise use
- OpenAPI documentation with interactive testing
π Getting Started:
# Start the complete platform
npm install && npm run build && npm run server
# Access all features at:
# - Web Interface: http://localhost:3001/
# - Schema Explorer: http://localhost:3001/explorer
# - QuickType Generator: http://localhost:3001/quicktype
# - VC Tools: http://localhost:3001/verifiable-credentials
# - GraphQL Playground: http://localhost:3001/api/graphql
Core identity and permission management
Schema | Description | QuickType Command |
---|---|---|
OriginVaultRootAuthority |
Platform root authority | quicktype --src schemas/v1/identity/OriginVaultRootAuthority.schema.json --lang typescript |
PersonCredential |
Individual identity verification | quicktype --src schemas/v1/identity/PersonCredential.schema.json --lang python |
OrganizationCredential |
Business entity verification | quicktype --src schemas/v1/identity/OrganizationCredential.schema.json --lang go |
VaultAccessCredential |
Vault permission management | quicktype --src schemas/v1/identity/VaultAccessCredential.schema.json --lang csharp |
AdminCredential |
Administrative privileges | quicktype --src schemas/v1/identity/AdminCredential.schema.json --lang java |
APIAccessCredential |
API access control | quicktype --src schemas/v1/identity/APIAccessCredential.schema.json --lang rust |
Complete business process automation
Schema | Description | QuickType Command |
---|---|---|
ContractCredential |
Legal contract execution | quicktype --src schemas/v1/business/ContractCredential.schema.json --lang typescript |
EquityGrantCredential |
Equity compensation management | quicktype --src schemas/v1/business/EquityGrantCredential.schema.json --lang python |
WorkflowExecutionCredential |
Multi-step workflow tracking | quicktype --src schemas/v1/business/WorkflowExecutionCredential.schema.json --lang go |
VerificationReportCredential |
Third-party verification | quicktype --src schemas/v1/business/VerificationReportCredential.schema.json --lang csharp |
CustomerOnboardingCredential |
Customer setup automation | quicktype --src schemas/v1/business/CustomerOnboardingCredential.schema.json --lang java |
SustainabilityCredential |
Environmental impact tracking | quicktype --src schemas/v1/business/SustainabilityCredential.schema.json --lang rust |
RevocationService |
Credential revocation management | quicktype --src schemas/v1/business/RevocationService.schema.json --lang typescript |
Content authenticity and creation workflows
Schema | Description | QuickType Command |
---|---|---|
CreativeWorkCredential |
Content ownership and metadata | quicktype --src schemas/v1/content/CreativeWorkCredential.schema.json --lang typescript |
ContentAuthenticityCredential |
Content integrity verification | quicktype --src schemas/v1/content/ContentAuthenticityCredential.schema.json --lang python |
ContentAIPermissionCredential |
AI usage permissions | quicktype --src schemas/v1/content/ContentAIPermissionCredential.schema.json --lang go |
Trust networks and reputation systems
Schema | Description | QuickType Command |
---|---|---|
TrustedIssuerCredential |
Trusted credential issuers | quicktype --src schemas/v1/trust/TrustedIssuerCredential.schema.json --lang csharp |
ReputationCredential |
Reputation scoring and history | quicktype --src schemas/v1/trust/ReputationCredential.schema.json --lang java |
Financial and economic interactions
Schema | Description | QuickType Command |
---|---|---|
PaymentCredential |
Payment verification and tracking | quicktype --src schemas/v1/payments/PaymentCredential.schema.json --lang rust |
StorageCredential |
Storage usage and billing | quicktype --src schemas/v1/payments/StorageCredential.schema.json --lang typescript |
Platform services and integrations
Schema | Description | QuickType Command |
---|---|---|
PluginEndorsementCredential |
Plugin verification and trust | quicktype --src schemas/v1/platform/PluginEndorsementCredential.schema.json --lang python |
GemCredential |
Platform reward and achievement system | quicktype --src schemas/v1/platform/GemCredential.schema.json --lang go |
// Generate types: quicktype --src schemas/v1/business/ --lang typescript --out types/business.ts
import {
OrganizationCredential,
ContractCredential,
WorkflowExecutionCredential
} from './types/business';
// Create organization
const orgCredential: OrganizationCredential = {
"@context": ["https://www.w3.org/2018/credentials/v1"],
"type": ["VerifiableCredential", "OrganizationCredential"],
"issuer": "did:cheqd:mainnet:originvault",
"issuanceDate": new Date().toISOString(),
"credentialSubject": {
"id": "did:cheqd:mainnet:acme-corp",
"legalName": "Acme Corporation",
"registrationNumber": "123456789"
}
};
// Issue contract
const contractCredential: ContractCredential = {
"@context": ["https://www.w3.org/2018/credentials/v1"],
"type": ["VerifiableCredential", "ContractCredential"],
"issuer": "did:cheqd:mainnet:originvault",
"issuanceDate": new Date().toISOString(),
"credentialSubject": {
"id": "did:cheqd:mainnet:contract-456",
"contractType": "ContentCreation",
"parties": [orgCredential.credentialSubject.id, "did:cheqd:mainnet:creator-789"],
"terms": "Exclusive content creation agreement...",
"effectiveDate": new Date().toISOString(),
"compensation": {
"amount": 5000,
"currency": "USD",
"paymentSchedule": "monthly"
}
}
};
# Generate types: quicktype --src schemas/v1/business/ --lang python --out types/business.py
from business_types import OrganizationCredential, ContractCredential
from datetime import datetime
# Create organization credential
org_credential = OrganizationCredential(
context=["https://www.w3.org/2018/credentials/v1"],
type=["VerifiableCredential", "OrganizationCredential"],
issuer="did:cheqd:mainnet:originvault",
issuance_date=datetime.now().isoformat(),
credential_subject=OrganizationCredentialSubject(
id="did:cheqd:mainnet:acme-corp",
legal_name="Acme Corporation",
registration_number="123456789"
)
)
# Create contract credential
contract_credential = ContractCredential(
context=["https://www.w3.org/2018/credentials/v1"],
type=["VerifiableCredential", "ContractCredential"],
issuer="did:cheqd:mainnet:originvault",
issuance_date=datetime.now().isoformat(),
credential_subject=ContractCredentialSubject(
id="did:cheqd:mainnet:contract-456",
contract_type="ContentCreation",
parties=[org_credential.credential_subject.id, "did:cheqd:mainnet:creator-789"],
terms="Exclusive content creation agreement...",
effective_date=datetime.now().isoformat(),
compensation=Compensation(
amount=5000.0,
currency="USD",
payment_schedule="monthly"
)
)
)
// Generate types: quicktype --src schemas/v1/business/ --lang go --out types/business.go
package main
import (
"time"
"./types"
)
func main() {
// Create organization credential
orgCredential := types.OrganizationCredential{
Context: []string{"https://www.w3.org/2018/credentials/v1"},
Type: []string{"VerifiableCredential", "OrganizationCredential"},
Issuer: "did:cheqd:mainnet:originvault",
IssuanceDate: time.Now(),
CredentialSubject: types.OrganizationCredentialSubject{
ID: "did:cheqd:mainnet:acme-corp",
LegalName: "Acme Corporation",
RegistrationNumber: "123456789",
},
}
// Create contract credential
contractCredential := types.ContractCredential{
Context: []string{"https://www.w3.org/2018/credentials/v1"},
Type: []string{"VerifiableCredential", "ContractCredential"},
Issuer: "did:cheqd:mainnet:originvault",
IssuanceDate: time.Now(),
CredentialSubject: types.ContractCredentialSubject{
ID: "did:cheqd:mainnet:contract-456",
ContractType: "ContentCreation",
Parties: []string{
orgCredential.CredentialSubject.ID,
"did:cheqd:mainnet:creator-789",
},
Terms: "Exclusive content creation agreement...",
EffectiveDate: time.Now().Format(time.RFC3339),
Compensation: &types.Compensation{
Amount: 5000,
Currency: "USD",
PaymentSchedule: "monthly",
},
},
}
}
NEW: Upload and convert your files directly in the browser!
Visit our QuickType page to:
- Drag & drop your JSON Schema, TypeScript, or JSON files
- Select target language from 10+ supported languages
- Generate type-safe code instantly in your browser
- Download individual files or get everything as a ZIP
- Batch process multiple files at once
# Start the QuickType API server
npm install
npm run build
npm run server
# Visit http://localhost:3001/quicktype
API Endpoints:
POST /api/quicktype/generate-from-files
- Generate code from uploaded filesPOST /api/quicktype/download-zip
- Download generated files as ZIPPOST /api/quicktype/validate-schema
- Validate schemas
For full API documentation, see QuickType API Guide.
# Generate types for all schemas
quicktype --src schemas/v1/ --lang typescript --out types/all-schemas.ts
# Generate for specific categories
quicktype --src schemas/v1/business/ --lang python --out types/business.py
quicktype --src schemas/v1/identity/ --lang go --out types/identity.go
# Generate with custom type names
quicktype \
--src schemas/v1/business/ContractCredential.schema.json \
--lang typescript \
--out types/Contract.ts \
--type-name Contract
# Generate union types
quicktype \
--src schemas/v1/ \
--lang typescript \
--out types/AllCredentials.ts \
--prefer-unions \
--union-type-name Credential
# Generate directly from OriginVault schema registry
quicktype \
--src https://schemas.originvault.box/v1/business/ContractCredential.schema.json \
--lang typescript
# Generate entire category from URL
quicktype \
--src https://schemas.originvault.box/v1/business/ \
--lang python \
--out business_types.py
- QuickType Integration Guide - Complete QuickType integration with examples
- Business Identity Implementation Guide - Business identity and contract workflows
- Enhanced Integration Guide - Advanced integration patterns
- Performance Optimization Guide - Schema performance best practices
- Multi-Root Trust Architecture - Trust framework design and implementation
- BFF Schema Alignment Actions - Backend-for-Frontend integration strategy
- Schema Cleanup Plan - Schema maintenance and cleanup procedures
- Schema Decisions Summary - Key schema design decisions
- Schema Migration Summary - Version migration procedures
- DIF Basic Person Adoption - DIF standards compliance
- 22 production schemas powering real business workflows
- W3C VC 2.0 compliant for maximum interoperability
- Real-world examples tested with actual data
- QuickType optimized for instant type generation
- Multi-language support for any tech stack
- Comprehensive documentation with examples
- Complete workflows from identity to payment
- Legal compliance built into schemas
- Scalable architecture for enterprise adoption
- Open standards for long-term compatibility
- Extensible design for custom requirements
- Active development with regular updates
- OriginVault Schema Registry - Hosted schema registry
- QuickType Documentation - Complete QuickType guide
- W3C Verifiable Credentials - VC 2.0 specification
- DIF Credential Schemas - DIF standards
- GitHub Repository - Source code and issues
- Discord Community - Developer discussions
- Documentation Issues - Report documentation problems
Ready to build type-safe verifiable business processes?
π QuickType Integration Guide β’ π Business Implementation β’ ποΈ Architecture