@pushwoosh/rpc-v2-http-api-data 0.2.311 → 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 +37 -0
- package/data_erasure.d.ts +20 -1
- 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
|
},
|
|
@@ -10584,6 +10590,9 @@ export const data = {
|
|
|
10584
10590
|
},
|
|
10585
10591
|
"offset": {
|
|
10586
10592
|
"type": "number"
|
|
10593
|
+
},
|
|
10594
|
+
"includeDryRuns": {
|
|
10595
|
+
"type": "boolean"
|
|
10587
10596
|
}
|
|
10588
10597
|
}
|
|
10589
10598
|
},
|
|
@@ -10692,6 +10701,34 @@ export const data = {
|
|
|
10692
10701
|
}
|
|
10693
10702
|
}
|
|
10694
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
|
+
},
|
|
10695
10732
|
"pushwoosh.rpc_v2.data_erasure.DataErasureTaskRow": {
|
|
10696
10733
|
"type": "I",
|
|
10697
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,
|
|
@@ -14,12 +15,14 @@ export interface DataErasureService {
|
|
|
14
15
|
CreateTask: DataErasureService_CreateTask;
|
|
15
16
|
/** Returns one data erasure task with its status and counters: how many subjects were erased, not found or failed. Use to follow a task started by create_data_erasure_task. */
|
|
16
17
|
GetTask: DataErasureService_GetTask;
|
|
17
|
-
/** Lists
|
|
18
|
+
/** Lists the erasures of the account, newest first — the audit journal of who erased what and when. Dry runs are measurements and are left out; pass include_dry_runs to see them next to the erasures they measured. */
|
|
18
19
|
ListTasks: DataErasureService_ListTasks;
|
|
19
20
|
/** Returns the per-identifier outcome of one task: what was deleted, not found, skipped or failed. Identifiers are reported as hashes, the task never stores them in the clear. */
|
|
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';
|
|
@@ -50,6 +53,8 @@ export type GetDataErasureTaskResponse = {
|
|
|
50
53
|
export type ListDataErasureTasksRequest = {
|
|
51
54
|
limit?: number;
|
|
52
55
|
offset?: number;
|
|
56
|
+
/** Dry runs are measurements, not erasures, and are left out unless asked for. */
|
|
57
|
+
includeDryRuns?: boolean;
|
|
53
58
|
};
|
|
54
59
|
export type ListDataErasureTasksResponse = {
|
|
55
60
|
tasks: DataErasureTask[];
|
|
@@ -94,6 +99,20 @@ export type GetDataErasureTaskReportResponse = {
|
|
|
94
99
|
*/
|
|
95
100
|
content: string;
|
|
96
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
|
+
};
|
|
97
116
|
export type DataErasureTaskRow = {
|
|
98
117
|
/** sha256 of the identifier: the journal of an erasure must not hold personal data. */
|
|
99
118
|
identifierHash: string;
|