@pushwoosh/rpc-v2-http-api-data 0.2.312 → 0.2.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.js +34 -0
- package/data_erasure.d.ts +17 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -10499,6 +10499,12 @@ export const data = {
|
|
|
10499
10499
|
"response": "pushwoosh.rpc_v2.data_erasure.GetDataErasureTaskReportResponse",
|
|
10500
10500
|
"method": "get",
|
|
10501
10501
|
"path": "/api/data_erasure/tasks/{task_id}/report"
|
|
10502
|
+
},
|
|
10503
|
+
"GetJournalReport": {
|
|
10504
|
+
"request": "pushwoosh.rpc_v2.data_erasure.GetDataErasureJournalReportRequest",
|
|
10505
|
+
"response": "pushwoosh.rpc_v2.data_erasure.GetDataErasureJournalReportResponse",
|
|
10506
|
+
"method": "get",
|
|
10507
|
+
"path": "/api/data_erasure/report"
|
|
10502
10508
|
}
|
|
10503
10509
|
}
|
|
10504
10510
|
},
|
|
@@ -10695,6 +10701,34 @@ export const data = {
|
|
|
10695
10701
|
}
|
|
10696
10702
|
}
|
|
10697
10703
|
},
|
|
10704
|
+
"pushwoosh.rpc_v2.data_erasure.GetDataErasureJournalReportRequest": {
|
|
10705
|
+
"type": "I",
|
|
10706
|
+
"fields": {
|
|
10707
|
+
"from": {
|
|
10708
|
+
"type": "Date"
|
|
10709
|
+
},
|
|
10710
|
+
"to": {
|
|
10711
|
+
"type": "Date"
|
|
10712
|
+
},
|
|
10713
|
+
"includeDryRuns": {
|
|
10714
|
+
"type": "boolean"
|
|
10715
|
+
}
|
|
10716
|
+
}
|
|
10717
|
+
},
|
|
10718
|
+
"pushwoosh.rpc_v2.data_erasure.GetDataErasureJournalReportResponse": {
|
|
10719
|
+
"type": "I",
|
|
10720
|
+
"fields": {
|
|
10721
|
+
"filename": {
|
|
10722
|
+
"type": "string"
|
|
10723
|
+
},
|
|
10724
|
+
"contentType": {
|
|
10725
|
+
"type": "string"
|
|
10726
|
+
},
|
|
10727
|
+
"content": {
|
|
10728
|
+
"type": "string"
|
|
10729
|
+
}
|
|
10730
|
+
}
|
|
10731
|
+
},
|
|
10698
10732
|
"pushwoosh.rpc_v2.data_erasure.DataErasureTaskRow": {
|
|
10699
10733
|
"type": "I",
|
|
10700
10734
|
"fields": {
|
package/data_erasure.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type DataErasureService_GetTask = RpcMethod<GetDataErasureTaskRequest, Ge
|
|
|
4
4
|
export type DataErasureService_ListTasks = RpcMethod<ListDataErasureTasksRequest, ListDataErasureTasksResponse>;
|
|
5
5
|
export type DataErasureService_ListTaskRows = RpcMethod<ListDataErasureTaskRowsRequest, ListDataErasureTaskRowsResponse>;
|
|
6
6
|
export type DataErasureService_GetTaskReport = RpcMethod<GetDataErasureTaskReportRequest, GetDataErasureTaskReportResponse>;
|
|
7
|
+
export type DataErasureService_GetJournalReport = RpcMethod<GetDataErasureJournalReportRequest, GetDataErasureJournalReportResponse>;
|
|
7
8
|
/**
|
|
8
9
|
* DataErasureService is the self-serve door to erasing the personal data of an end
|
|
9
10
|
* user (GDPR). The erase itself runs as a background task; these methods start it,
|
|
@@ -20,6 +21,8 @@ export interface DataErasureService {
|
|
|
20
21
|
ListTaskRows: DataErasureService_ListTaskRows;
|
|
21
22
|
/** Returns the whole report of one task as a CSV file: a row per identifier per application with its outcome. Use it to keep the evidence of an erasure outside Pushwoosh; list_data_erasure_task_rows shows the same rows page by page. */
|
|
22
23
|
GetTaskReport: DataErasureService_GetTaskReport;
|
|
24
|
+
/** Returns every erasure of a period as one CSV file — a row per identifier per application, with the task and its initiator on each row. This is what an account hands to an auditor; dry runs are left out unless include_dry_runs is set, and a period too large to fit one file is refused instead of being cut. */
|
|
25
|
+
GetJournalReport: DataErasureService_GetJournalReport;
|
|
23
26
|
}
|
|
24
27
|
/** How the subjects of an erasure request are addressed. */
|
|
25
28
|
export type SubjectIdentifierType = 'SUBJECT_IDENTIFIER_UNKNOWN' | 'SUBJECT_IDENTIFIER_USER_ID' | 'SUBJECT_IDENTIFIER_HWID' | 'SUBJECT_IDENTIFIER_EMAIL';
|
|
@@ -96,6 +99,20 @@ export type GetDataErasureTaskReportResponse = {
|
|
|
96
99
|
*/
|
|
97
100
|
content: string;
|
|
98
101
|
};
|
|
102
|
+
export type GetDataErasureJournalReportRequest = {
|
|
103
|
+
/** Erasures started at or after this moment; required. */
|
|
104
|
+
from?: Date;
|
|
105
|
+
/** Erasures started before this moment; now when empty. */
|
|
106
|
+
to?: Date;
|
|
107
|
+
includeDryRuns?: boolean;
|
|
108
|
+
};
|
|
109
|
+
export type GetDataErasureJournalReportResponse = {
|
|
110
|
+
/** Suggested file name, e.g. data-erasure-2026-01-01-2026-04-01.csv. */
|
|
111
|
+
filename: string;
|
|
112
|
+
contentType: string;
|
|
113
|
+
/** The file itself, base64 over http, with the same size guard as the task report. */
|
|
114
|
+
content: string;
|
|
115
|
+
};
|
|
99
116
|
export type DataErasureTaskRow = {
|
|
100
117
|
/** sha256 of the identifier: the journal of an erasure must not hold personal data. */
|
|
101
118
|
identifierHash: string;
|