UNPKG

@eventcatalog/license

Version:

License verification for EventCatalog

37 lines 1.06 kB
/** * License entitlements extracted from JWT payload */ export type Entitlements = { iss?: string; aud?: string; iat?: number; nbf?: number; exp?: number; licenseId?: string; org?: string; orgId?: string; product?: string; ecVersionRange?: string; plugins?: string[]; maxSeats?: number; fingerprint?: string; [k: string]: unknown; }; /** * Options for license verification */ export type VerifyOptions = { /** Path to license file. If omitted, auto-locate using discovery order */ licensePath?: string; /** Expected audience claim. Default: "EventCatalog" */ audience?: string; /** Expected issuer claim. Default: "EventCatalog Ltd" */ issuer?: string; /** Clock tolerance for time-based claims. Default: "48h" */ clockTolerance?: string; /** Current EventCatalog version for range checks */ currentVersion?: string; /** Provider for machine fingerprint verification */ fingerprintProvider?: () => string | null; }; //# sourceMappingURL=types.d.ts.map