@voltro/plugin-governance 0.1.0
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/CHANGELOG.md +52 -0
- package/LICENSE +57 -0
- package/README.md +26 -0
- package/SECURITY.md +56 -0
- package/THIRD-PARTY-NOTICES.md +4596 -0
- package/dist/index.d.ts +248 -0
- package/dist/index.js +366 -0
- package/dist/rpc.d.ts +41 -0
- package/dist/rpc.js +72 -0
- package/package.json +50 -0
package/dist/rpc.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Schema as e } from "effect";
|
|
2
|
+
import { defineAction as t, defineMutation as n, defineQuery as r } from "@voltro/protocol";
|
|
3
|
+
//#region src/rpc.ts
|
|
4
|
+
var i = t({
|
|
5
|
+
name: "governance.export",
|
|
6
|
+
input: e.Struct({ subjectId: e.String }),
|
|
7
|
+
output: e.Record({
|
|
8
|
+
key: e.String,
|
|
9
|
+
value: e.Unknown
|
|
10
|
+
})
|
|
11
|
+
}), a = t({
|
|
12
|
+
name: "governance.erase",
|
|
13
|
+
input: e.Struct({
|
|
14
|
+
subjectId: e.String,
|
|
15
|
+
mode: e.optional(e.Literal("delete", "anonymize"))
|
|
16
|
+
}),
|
|
17
|
+
output: e.Struct({
|
|
18
|
+
subjectId: e.String,
|
|
19
|
+
at: e.String,
|
|
20
|
+
mode: e.String,
|
|
21
|
+
affected: e.Array(e.Struct({
|
|
22
|
+
table: e.String,
|
|
23
|
+
count: e.Number
|
|
24
|
+
}))
|
|
25
|
+
})
|
|
26
|
+
}), o = n({
|
|
27
|
+
name: "governance.consent",
|
|
28
|
+
input: e.Struct({
|
|
29
|
+
purpose: e.String,
|
|
30
|
+
granted: e.Boolean
|
|
31
|
+
}),
|
|
32
|
+
output: e.Struct({ ok: e.Boolean })
|
|
33
|
+
}), s = r({
|
|
34
|
+
name: "governance.hasConsent",
|
|
35
|
+
input: e.Struct({ purpose: e.String }),
|
|
36
|
+
output: e.Struct({ granted: e.Boolean })
|
|
37
|
+
}), c = [
|
|
38
|
+
{
|
|
39
|
+
tag: "governance.export",
|
|
40
|
+
kind: "action",
|
|
41
|
+
import: {
|
|
42
|
+
module: "@voltro/plugin-governance/rpc",
|
|
43
|
+
name: "exportDescriptor"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
tag: "governance.erase",
|
|
48
|
+
kind: "action",
|
|
49
|
+
import: {
|
|
50
|
+
module: "@voltro/plugin-governance/rpc",
|
|
51
|
+
name: "eraseDescriptor"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
tag: "governance.consent",
|
|
56
|
+
kind: "mutation",
|
|
57
|
+
import: {
|
|
58
|
+
module: "@voltro/plugin-governance/rpc",
|
|
59
|
+
name: "consentDescriptor"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
tag: "governance.hasConsent",
|
|
64
|
+
kind: "query",
|
|
65
|
+
import: {
|
|
66
|
+
module: "@voltro/plugin-governance/rpc",
|
|
67
|
+
name: "hasConsentDescriptor"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
//#endregion
|
|
72
|
+
export { o as consentDescriptor, a as eraseDescriptor, i as exportDescriptor, c as governanceRpcClientImports, s as hasConsentDescriptor };
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voltro/plugin-governance",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Data governance — retention policies (TTL sweep), GDPR subject export + erasure (right-to-be-forgotten), and consent recording. Builds on audit + soft-delete.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"voltro",
|
|
7
|
+
"typescript",
|
|
8
|
+
"framework"
|
|
9
|
+
],
|
|
10
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
11
|
+
"homepage": "https://voltro.dev",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"email": "support@voltro.dev"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Voltro UG",
|
|
17
|
+
"url": "https://voltro.dev"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./rpc": {
|
|
27
|
+
"types": "./dist/rpc.d.ts",
|
|
28
|
+
"import": "./dist/rpc.js",
|
|
29
|
+
"default": "./dist/rpc.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/index.js",
|
|
33
|
+
"module": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=24.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@voltro/database": "0.1.0",
|
|
41
|
+
"@voltro/protocol": "0.1.0",
|
|
42
|
+
"@voltro/runtime": "0.1.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"effect": "^3.21.4"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|