import type { HttpClient } from '../http.js'; import type { CreateConsentRecordParams, CreateConsentRecordResponse, ConsentRecord, ListConsentRecordsParams, ListConsentRecordsResponse, WithdrawConsentParams, WithdrawConsentResponse, PrincipalRecordsResponse, ErasureResponse, CreateConsentNoticeParams, ConsentNotice, ConsentNoticeDetail, ListConsentNoticesResponse, FileGrievanceParams, Grievance, ListGrievancesParams, ListGrievancesResponse, UpdateGrievanceParams, CreateDpdpExportParams, DpdpExport, DpdpPageParams } from '../types.js'; /** * DPDP Act 2023 endpoints: consent records and withdrawal (s.6(4)), consent * notices (s.5), the rights to access (s.11) and erasure (s.12), grievance * redressal (s.13) and compliance exports. */ export declare class DpdpClient { #private; constructor(http: HttpClient); /** Record consent for a grant. The response carries the signed consent proof. */ createConsentRecord(params: CreateConsentRecordParams): Promise; getConsentRecord(recordId: string): Promise; /** * List consent records, newest first. Pass a data principal id (the original * form) or `{ dataPrincipalId?, limit?, cursor? }`. */ listConsentRecords(params?: string | ListConsentRecordsParams): Promise; /** Withdraw consent (DPDP Act s.6(4)). */ withdrawConsent(recordId: string, params: WithdrawConsentParams): Promise; /** A data principal's consent records (right to access, DPDP Act s.11). */ listPrincipalRecords(principalId: string, params?: DpdpPageParams): Promise; /** * Erase a data principal's personal data (right to erasure, DPDP Act s.12). * Idempotent on the server: a repeat returns the earlier request, so a * transient failure is retried like a read. */ requestErasure(principalId: string): Promise; getErasureRequest(requestId: string): Promise; /** Register a consent notice version (DPDP Act s.5). */ createConsentNotice(params: CreateConsentNoticeParams): Promise; listConsentNotices(params?: DpdpPageParams): Promise; /** Every version of a notice, newest first. */ getConsentNotice(noticeId: string): Promise; /** File a grievance (DPDP Act s.13). */ fileGrievance(params: FileGrievanceParams): Promise; getGrievance(grievanceId: string): Promise; /** List grievances, newest first. Items omit description and evidence. */ listGrievances(params?: ListGrievancesParams): Promise; /** Move a grievance: submitted -> in_review -> resolved | rejected. */ updateGrievance(grievanceId: string, params: UpdateGrievanceParams): Promise; createExport(params: CreateDpdpExportParams): Promise; /** Fetch an export. An expired export fails with 410 `GONE`. */ getExport(exportId: string): Promise; } //# sourceMappingURL=dpdp.d.ts.map