Teleforge API Reference - v0.1.0
    Preparing search index...

    Module bff/src

    Classes

    HttpServiceAdapter
    ServiceAdapterRegistry
    ConfiguredBffRouter
    BffContextError
    BffError
    BffValidationError
    BffIdentityError
    BffRouteError
    BffRouteRegistry
    BffSessionError

    Functions

    createRestAdapter
    invokeAdapter
    buildBffResponse
    buildRouteResponse
    resolveRouteCompletion
    withCompletion
    withCompletionHandler
    validateCompletionAction
    createBffConfig
    normalizeBffConfigOptions
    validateBffConfigOptions
    createBffRequestContext
    ensureBffError
    serializeErrorResponse
    getStatusCodeForBffError
    emitRefreshTokenReuseDetected
    withIdentityResolution
    resolveIdentity
    enforceBffAuth
    runWithCache
    runMiddlewares
    enforceLaunchModes
    withExecutionTimeout
    defineBffRoute
    executeBffRoute
    normalizeRouteServiceConfig
    toLegacyProxyConfig
    validateBffRouteConfig
    createSessionRoutes
    createSessionExchangeHandler
    withSessionValidation
    createSessionRefreshHandler
    createSessionRevokeHandler
    createAccessToken
    createRefreshToken
    hashRefreshToken
    getAccessTokenTtlSeconds
    getRefreshTokenTtlSeconds
    verifyAccessToken
    verifyRefreshToken
    validateSession
    getBearerToken
    hydrateSessionContext

    Interfaces

    ServiceContext
    HealthStatus
    ServiceAdapter
    HttpServiceOperation
    HttpRetryPolicy
    HttpServiceAdapterConfig
    BffServiceRouteConfig
    InvokeAdapterOptions
    CompletionEnvelope
    BffResponse
    BffFeatureFlags
    BffJwtConfig
    BffValidationConfig
    BffIdentityConfig
    BffConfigOptions
    BffConfig
    BffResolvedConfigOptions
    BffRouter
    BffContextOptions
    CookieOptions
    BffAuthState
    BffResponseState
    BffRequestContext
    ErrorResponse
    FieldError
    SessionRefreshTokenReuseDetectedEvent
    SessionSecurityEventSink
    AppUser
    ResolvedIdentity
    IdentityCacheEntry
    IdentityAdapter
    IdentityResolverContext
    IdentityResolutionOptions
    CachePolicy
    ProxyConfig
    BffRouteDefinition
    BffRouteMatch
    BffExecutionOptions
    BffCacheStore
    RefreshTokenRecord
    SessionClaims
    CreateSessionInput
    SessionRecord
    RotateRefreshTokenInput
    SessionAdapter
    SessionConfig
    SessionValidationOptions
    ExchangeInput
    ExchangeOutput
    RefreshInput
    RevokeInput
    RevokeOutput
    SessionRouteOptions

    Type Aliases

    ServiceMap
    InferBffRouteInput
    InferBffRouteOutput
    BffClientShape
    CompletionAction
    CompletionResolver
    BffCacheAdapter
    BffServiceAdapter
    BffAuthType
    BffChatType
    BffContextErrorCode
    BffErrorCode
    SessionSecurityEvent
    IdentityStrategy
    BffIdentityErrorCode
    CustomIdentityResolver
    BffAuthMode
    BffRouteMethod
    BffRouteErrorCode
    BffMiddleware
    BffCompletionConfig
    BffHandler
    BffRouteConfig
    BffSessionErrorCode
    RotateRefreshTokenResult

    Variables

    BffErrorCodes
    SessionSecurityEventTypes