import { __exportAll, __reExport } from "./_virtual/_rolldown/runtime.mjs"; import { Identifier } from "@facteurjs/core/database/types"; import { ConfigProvider } from "@adonisjs/core/types"; import { HttpContext } from "@adonisjs/core/http"; export * from "@facteurjs/core/types"; //#region src/types.d.ts declare namespace types_d_exports { export { AdonisAuthorizationCallback, AdonisAuthorizationContext, InferChannels }; } import * as import__facteurjs_core_types from "@facteurjs/core/types"; type InferChannels = T extends { channels: infer Channels; } ? { [K in keyof Channels]: Channels[K] extends ConfigProvider ? P : never } : never; /** * Context passed to the AdonisJS authorization callback. * Includes the full HttpContext for accessing auth, session, etc. */ interface AdonisAuthorizationContext { notifiableId: Identifier; tenantId: Identifier | undefined; ctx: HttpContext; } /** * Authorization callback for AdonisJS. * Use `ctx.auth.user` to get the authenticated user. */ type AdonisAuthorizationCallback = (context: AdonisAuthorizationContext) => Promise | boolean; //#endregion export { AdonisAuthorizationCallback, AdonisAuthorizationContext, InferChannels, types_d_exports };