pluggy-sdk
Version:
Official Node.js/TypeScript SDK for the Pluggy API.
22 lines (21 loc) • 712 B
TypeScript
import { PageFilters } from './common';
/**
* Consent response object representing user consent for data access
*/
export type Consent = {
/** Primary identifier of the consent */
id: string;
/** Primary identifier of the Item */
itemId: string;
/** List of products that the consent covers */
products: string[];
/** List of Open Finance permissions granted */
openFinancePermissionsGranted: string[];
/** Date when the consent was created */
createdAt: Date;
/** Date when the consent expires */
expiresAt: Date | null;
/** Date when the consent was revoked (null if not revoked) */
revokedAt: Date | null;
};
export type ConsentFilters = PageFilters;