mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 07:06:41 +02:00
OIDC providers like Synapse expect the JWT issuer claim to match the discovery document's issuer URL. Changed JWT plugin config from JWT_ISSUER to BASE_URL to ensure consistency. Also adds: - @manacore/credit-operations package with operation definitions - @manacore/shared-credit-ui package with React Native and Svelte components - CreditInterceptor and @UseCredits decorator in nestjs-integration - Credit system integration in chat backend
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
// Module
|
|
export { ManaCoreModule, MANA_CORE_OPTIONS } from './mana-core.module';
|
|
|
|
// Interfaces
|
|
export {
|
|
ManaCoreModuleOptions,
|
|
ManaCoreModuleAsyncOptions,
|
|
ManaCoreOptionsFactory,
|
|
} from './interfaces/mana-core-options.interface';
|
|
|
|
// Guards
|
|
export { AuthGuard } from './guards/auth.guard';
|
|
export { OptionalAuthGuard } from './guards/optional-auth.guard';
|
|
|
|
// Decorators
|
|
export { CurrentUser, JwtPayload } from './decorators/current-user.decorator';
|
|
export { Public, IS_PUBLIC_KEY } from './decorators/public.decorator';
|
|
export {
|
|
UseCredits,
|
|
CreditOperationConfig,
|
|
CREDIT_OPERATION_KEY,
|
|
} from './decorators/use-credits.decorator';
|
|
|
|
// Interceptors
|
|
export { CreditInterceptor } from './interceptors/credit.interceptor';
|
|
|
|
// Services
|
|
export {
|
|
CreditClientService,
|
|
CreditValidationResult,
|
|
CreditBalance,
|
|
} from './services/credit-client.service';
|
|
|
|
// Exceptions
|
|
export {
|
|
InsufficientCreditsException,
|
|
InsufficientCreditsDetails,
|
|
} from './exceptions/insufficient-credits.exception';
|
|
|
|
// Re-export credit operations for convenience
|
|
export {
|
|
CreditOperationType,
|
|
CREDIT_COSTS,
|
|
CreditCategory,
|
|
getCreditCost,
|
|
getOperationMetadata,
|
|
getOperationsForApp,
|
|
formatCreditCost,
|
|
getPricingTable,
|
|
isFreeOperation,
|
|
isMicroCreditOperation,
|
|
isAiOperation,
|
|
} from '@manacore/credit-operations';
|