@synet/credential
Version:
VC Credentials - Simple, Robust, Unit-based Verifiable Credentials service
33 lines (32 loc) • 1.22 kB
JavaScript
;
/**
* Universal W3C-compatible Verifiable Credential types
*
* This module provides the foundational types for verifiable credentials
* that are compatible with both W3C standards and any extended functionality.
*
* Key design principles:
* - Universal compatibility (W3C and beyond)
* - Type safety and composability
* - Minimal dependencies
* - Extensible base classes for client implementations
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Intelligence = exports.BaseCredentialType = void 0;
// Base credential types - extensible string types for client implementations
exports.BaseCredentialType = {
Identity: "IdentityCredential",
Authorization: "AuthorizationCredential",
Asset: "AssetCredential",
Governance: "GovernanceCredential",
Declaration: "DeclarationCredential",
};
// Intelligence classification - universal concept
var Intelligence;
(function (Intelligence) {
Intelligence["human"] = "Human";
Intelligence["ai"] = "AI";
Intelligence["hybrid"] = "Hybrid";
Intelligence["swarm"] = "Swarm";
Intelligence["superintelligent"] = "Superintelligent";
})(Intelligence || (exports.Intelligence = Intelligence = {}));