import { OrganizationEntity, UserEntity } from '../..'; import { BaseClassDto } from './base.dto'; import { AUTHORIZATION_EFFECT } from '../enum'; export declare class RequestResourceAuthorizationDto { /** * Use a resource envelope */ useResourceEnvelope?: boolean; /** * Indicate resource envelope ID */ resourceEnvelopeId?: string; reason: string; policyVersion: string; /** * Subject is the user we are requesting access from * Either username or userId * * Resource envelope: When using a resource envelope, this is usually unknown. * -> Do not submit a subject. */ subject?: string; actions: string[]; /** * Resources which we request access to * * Resource envelope: When using a resource envelope, this is usually unknown. * -> Do not submit a resources. */ resources?: string[]; affectedUserIds: string[]; requestedByUserId?: string; expiresAt?: number; } export declare class CreateResourceAuthorizationPolicy extends BaseClassDto { reason: string; effect: AUTHORIZATION_EFFECT; actions: string[]; resources: string[]; requestedByUser: UserEntity; affectedUsers: UserEntity[]; organization: OrganizationEntity; createdByUser: UserEntity; }