/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { ItemSubscription } from './ItemSubscription'; /** * Response for the generic item access check endpoint. * * Mirrors :class:`PaymentCheckResult` but only exposes the fields * relevant to API consumers. */ export type ItemAccessCheckResponse = { /** * True if the user can access the item. */ has_access: boolean; /** * Item type that was checked (e.g. 'mentor', 'workshop'). */ item_type: string; /** * ID of the item that was checked. */ item_id: string; /** * Machine-readable reason for the access decision (e.g. 'active', 'no_paywall', 'no_subscription'). */ reason: string; /** * True if the user must pay to gain access. */ requires_payment: boolean; /** * True if pricing tiers are available for purchase. */ pricing_available: boolean; /** * Pricing details when access is denied (item name, tiers, amounts). */ pricing?: any; /** * Active subscription details when the user has access via subscription. */ subscription?: ItemSubscription | null; };