import { BaseEntityClass } from '../base/base.entity'; export declare class ResourceEnvelopeContentForResourceAuthorization { subject: string; entity: string; entityName: string; entityId: string; /** @deprecated: only use for OnesID and OnesPASS */ localizedFirstName?: string; /** @deprecated: only use for OnesID and OnesPASS */ localizedLastName?: string; } /** * A resource envelop allows working with a resource, without knowing it's details * * Properties * - content: all properties to be shared * - expiresAt: the expiration of this envelop * - accessCount: how many times this envelope has been requested * - deleteOnAccessCount: after how many requests it should be deleted * * Do note that accessCount is not 100% reliable, as some applications may cache the envelope content. * * The initial use-case is as follows: * 1. User A shared resource envelop ID with User B * 2. User B can now make requests related to the resource, without knowing about it's content */ export declare class ResourceEnvelopeEntity extends BaseEntityClass { content: ResourceEnvelopeContentForResourceAuthorization | any; expiresAt: number; accessCount: number; deleteOnAccessCount: number; }