export * from './common'; export type IndustryType = 'education' | 'healthcare' | 'finance' | 'retail' | 'government' | 'logistics' | 'nonprofit'; export interface Industry { name: IndustryType; displayName: string; regulations: Regulation[]; patterns: Pattern[]; constraints: Constraint[]; philosophy: PhilosophyMapping; } export interface SDKConfig { serviceName: string; version: string; industry: TIndustry; serviceUrl?: string; compliance?: ComplianceFramework[]; philosophy?: PhilosophyConfig; features?: FeatureFlags; environment?: Environment; } export interface PhilosophyConfig { metrics: PhilosophyMetrics; goals: PhilosophyGoal[]; tracking: TrackingConfig; } export interface PhilosophyMetrics { automationLevel: number; timesSaved: number; userSatisfaction: number; industryMetrics?: TIndustry extends EducationIndustry ? TeacherLiberationMetrics : TIndustry extends HealthcareIndustry ? PatientCareMetrics : GenericMetrics; } export interface PhilosophyGoal { id: string; name: string; description: string; targetValue: number; currentValue: number; unit: string; } export interface TrackingConfig { enabled: boolean; endpoint?: string; interval?: number; batchSize?: number; } export type ComplianceFramework = 'FERPA' | 'COPPA' | 'GDPR' | 'HIPAA' | 'HITECH' | 'PCI-DSS' | 'SOX' | 'FedRAMP' | 'StateRAMP' | 'CCPA' | 'ISO-28000' | 'CTPAT' | 'TAPA' | 'IRS-501c3' | 'GAAP-NFP' | 'OMB-A133'; export interface Regulation { id: string; name: string; requirements: Requirement[]; validations: ValidationRule[]; } export interface Requirement { id: string; description: string; category: string; priority: 'critical' | 'high' | 'medium' | 'low'; implementation?: string; } export interface ValidationRule { id: string; type: 'data' | 'process' | 'security' | 'audit'; description: string; validator: (context: any) => boolean; } export interface ServiceMetadata { name: string; version: string; description: string; industry: TIndustry; type: ServiceType; capabilities: ServiceCapability[]; dependencies: DependencyMap; compliance: ComplianceConfig; philosophy: PhilosophyConfig; } export type ServiceType = 'api' | 'worker' | 'gateway' | 'database' | 'cache' | 'queue'; export interface ServiceCapability { name: string; type: CapabilityType; config: Record; } export type CapabilityType = 'rest' | 'graphql' | 'websocket' | 'grpc' | 'event' | 'batch'; export interface DependencyMap { [serviceName: string]: DependencyConfig; } export interface DependencyConfig { version: string; required: boolean; endpoints?: string[]; } export interface ComplianceConfig { frameworks: ComplianceFramework[]; auditLog: boolean; dataRetention: number; encryption: EncryptionConfig; } export interface EncryptionConfig { atRest: boolean; inTransit: boolean; algorithm: string; keyRotation: number; } export interface FeatureFlags { [feature: string]: FeatureFlag; } export interface FeatureFlag { enabled: boolean; rollout?: number; conditions?: FeatureCondition[]; } export interface FeatureCondition { type: 'user' | 'group' | 'environment' | 'custom'; operator: 'equals' | 'contains' | 'matches' | 'in'; value: any; } export type Environment = 'development' | 'staging' | 'production'; export interface Pattern { name: string; type: PatternType; description: string; implementation: string; } export type PatternType = 'creational' | 'structural' | 'behavioral' | 'concurrency' | 'architectural'; export interface Constraint { id: string; type: ConstraintType; description: string; validation: (value: any) => boolean; } export type ConstraintType = 'performance' | 'security' | 'compliance' | 'business' | 'technical'; export interface PhilosophyMapping { principles: Principle[]; practices: Practice[]; metrics: MetricDefinition[]; } export interface Principle { id: string; name: string; description: string; priority: number; } export interface Practice { id: string; name: string; description: string; principleId: string; implementation: string; } export interface MetricDefinition { id: string; name: string; description: string; unit: string; calculation: string; } export interface EducationIndustry extends Industry { name: 'education'; studentDataProtection: boolean; teacherLiberation: TeacherLiberationMetrics; } export interface TeacherLiberationMetrics { hoursReclaimed: number; administrativeReduction: number; studentEngagement: number; lessonPlanningEfficiency: number; } export interface HealthcareIndustry extends Industry { name: 'healthcare'; patientPrivacy: boolean; clinicalCompliance: ClinicalComplianceMetrics; } export interface LogisticsIndustry extends Industry { name: 'logistics'; supplyChainVisibility: boolean; fleetManagement: FleetManagementMetrics; } export interface NonprofitIndustry extends Industry { name: 'nonprofit'; donorTransparency: boolean; impactMeasurement: ImpactMetrics; } export interface PatientCareMetrics { patientWaitTime: number; documentationEfficiency: number; treatmentAccuracy: number; patientSatisfaction: number; } export interface ClinicalComplianceMetrics { hipaCompliance: number; auditReadiness: number; dataIntegrity: number; } export interface GenericMetrics { efficiency: number; quality: number; satisfaction: number; } export interface FleetManagementMetrics { vehicleUtilization: number; onTimeDelivery: number; fuelEfficiency: number; routeOptimization: number; maintenanceCompliance: number; } export interface ImpactMetrics { programEfficiency: number; donorRetention: number; volunteerEngagement: number; beneficiaryReach: number; overheadRatio: number; } export * from './compliance'; export * from './errors'; export * from './migration'; export * from './utilities'; export type { ComplianceValidator, ComplianceViolation, ValidationContext } from './compliance'; export type { ErrorOptions, SDKError, SerializedError } from './errors'; export type { MigrationError, MigrationType, MigrationWarning, TypeAdditionStrategy, TypeMigrationMap } from './migration'; export type { ApiError, DeepPartial, DeepReadonly, DeepRequired, ResponseMeta } from './utilities'; export type { AnyFunction, AsyncFunction, AuthUser, CacheEntry, CacheSerializer, CircuitBreakerStats, ClassDecorator, Constructor, DomainEvent, ErrorDetails, ExpressMiddleware, FeatureFlagClient, FeatureFlagConfig, JsonArray, JsonObject, JsonPrimitive, JsonValue, KeyValue, MethodDecorator, OptionalKeys, ParameterDecorator, PropertyDecorator, RateLimitResult, RedisClient, SyncFunction, TracingContext, TracingSpan, TypedMiddleware, TypedRequest, TypedResponse, UnwrapPromise } from './common'; //# sourceMappingURL=index.d.ts.map