import { AUTHORIZATION_APPROVAL_STATUS, AUTHORIZATION_EFFECT } from '..'; import { PLATFORM_IDENTIFIER } from './enum'; export interface ResourceAuthorizationResource { identifier: PLATFORM_IDENTIFIER; applicationEndpointId?: string; entity: string; entityName: string; entityId: string; } export interface ResourceAuthorizationAction { endpointType: string; actionIdentifier: string; } export interface GetResourceAuthorizationCacheKey { action: string; resource: string; userId: string; } /** * Resource authorization policy cache * * This should be used with get_resource_authorization_cache_key() * to get a cache key like 'resource_userId' */ export interface ResourceAuthorizationCache { effect: AUTHORIZATION_EFFECT; expiresAt?: number; action?: string; approvalStatus: AUTHORIZATION_APPROVAL_STATUS; }