UNPKG

@kenniy/godeye-data-contracts

Version:

Enterprise-grade base repository architecture for GOD-EYE microservices with zero overhead and maximum code reuse

30 lines (29 loc) 1.24 kB
/** * Kong Gateway authentication constants * Standardizes header names and auth patterns across all services */ export declare const KONG_HEADERS: { readonly USER_ID: "x-user-id"; readonly USER_EMAIL: "x-user-email"; readonly USER_TYPE: "x-user-type"; readonly PROFILE_ID: "x-user-profile-id"; readonly PROFILE_KIND: "x-user-profile-kind"; readonly PHONE: "x-user-phone"; readonly FIRST_NAME: "x-user-first-name"; readonly LAST_NAME: "x-user-last-name"; }; export declare const AUTH_MESSAGES: { readonly UNAUTHORIZED: "Authentication required to access this resource"; readonly FORBIDDEN: "Insufficient permissions to access this resource"; readonly INVALID_TOKEN: "Invalid or expired authentication token"; readonly TOKEN_EXPIRED: "Authentication token has expired"; readonly USER_CONTEXT_MISSING: "User context not found in headers - Kong Gateway auth required"; readonly INVALID_USER_TYPE: "Invalid user type provided"; readonly ROLE_NOT_ALLOWED: "User role is not allowed to access this resource"; }; export declare const AUTH_DEFAULTS: { readonly REQUIRED: true; readonly CACHE_CONTEXT: false; readonly CACHE_TTL: 300; readonly ALLOWED_ROLES: string[]; };