30 lines
954 B
TypeScript
30 lines
954 B
TypeScript
/**
|
|
* Main entry point for nomyo-js
|
|
* Universal exports for both Node.js and browser environments
|
|
*/
|
|
|
|
export { SecureChatCompletion } from './api/SecureChatCompletion';
|
|
export { SecureCompletionClient } from './core/SecureCompletionClient';
|
|
|
|
// SGX DCAP attestation — mirrors Python's AttestationPolicy, QuoteVerifier,
|
|
// CallableQuoteVerifier, JwtQuoteVerifier and SgxAttestationVerifier
|
|
export * from './core/attestation';
|
|
|
|
// Export types
|
|
export * from './types/attestation';
|
|
export * from './types/api';
|
|
export * from './types/client';
|
|
export * from './types/crypto';
|
|
|
|
// Export errors
|
|
export * from './errors';
|
|
|
|
// Secure memory public API — mirrors Python's get_memory_protection_info(),
|
|
// disable_secure_memory(), enable_secure_memory(), and SecureBuffer/secure_bytearray()
|
|
export {
|
|
getMemoryProtectionInfo,
|
|
disableSecureMemory,
|
|
enableSecureMemory,
|
|
SecureByteContext,
|
|
createSecureMemory,
|
|
} from './core/memory/secure';
|