@voltro/plugin-governance 0.84.0 → 0.85.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/dist/rpc.d.ts CHANGED
@@ -5,37 +5,37 @@ import { QueryProcedureDescriptor } from '@voltro/protocol';
5
5
  import { Schema } from 'effect';
6
6
 
7
7
  export declare const consentDescriptor: MutationProcedureDescriptor<"governance.consent", Schema.Struct<{
8
- purpose: typeof Schema.String;
9
- granted: typeof Schema.Boolean;
8
+ readonly purpose: Schema.String;
9
+ readonly granted: Schema.Boolean;
10
10
  }>, Schema.Struct<{
11
- ok: typeof Schema.Boolean;
12
- }>, typeof Schema.Never>;
11
+ readonly ok: Schema.Boolean;
12
+ }>, Schema.Never>;
13
13
 
14
14
  export declare const eraseDescriptor: ActionProcedureDescriptor<"governance.erase", Schema.Struct<{
15
- subjectId: typeof Schema.String;
16
- mode: Schema.optional<Schema.Literal<["delete", "anonymize"]>>;
15
+ readonly subjectId: Schema.String;
16
+ readonly mode: Schema.optional<Schema.Literals<readonly ["delete", "anonymize"]>>;
17
17
  }>, Schema.Struct<{
18
- subjectId: typeof Schema.String;
19
- at: typeof Schema.String;
20
- mode: typeof Schema.String;
21
- affected: Schema.Array$<Schema.Struct<{
22
- table: typeof Schema.String;
23
- count: typeof Schema.Number;
18
+ readonly subjectId: Schema.String;
19
+ readonly at: Schema.String;
20
+ readonly mode: Schema.String;
21
+ readonly affected: Schema.$Array<Schema.Struct<{
22
+ readonly table: Schema.String;
23
+ readonly count: Schema.Number;
24
24
  }>>;
25
- }>, typeof Schema.Never>;
25
+ }>, Schema.Never>;
26
26
 
27
27
  export declare const exportDescriptor: ActionProcedureDescriptor<"governance.export", Schema.Struct<{
28
- subjectId: typeof Schema.String;
29
- }>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Never>;
28
+ readonly subjectId: Schema.String;
29
+ }>, Schema.$Record<Schema.String, Schema.Unknown>, Schema.Never>;
30
30
 
31
31
  /** Declared for the codegen (`VoltroPlugin.rpcClientDescriptors`) so each tag is
32
32
  * emitted into the generated client group. Kept in lockstep with the exports. */
33
33
  export declare const governanceRpcClientImports: ReadonlyArray<PluginRpcClientDescriptor>;
34
34
 
35
35
  export declare const hasConsentDescriptor: QueryProcedureDescriptor<"governance.hasConsent", Schema.Struct<{
36
- purpose: typeof Schema.String;
36
+ readonly purpose: Schema.String;
37
37
  }>, Schema.Struct<{
38
- granted: typeof Schema.Boolean;
39
- }>, typeof Schema.Never>;
38
+ readonly granted: Schema.Boolean;
39
+ }>, Schema.Never>;
40
40
 
41
41
  export { }
package/dist/rpc.js CHANGED
@@ -4,16 +4,13 @@ import { ADMIN_SCOPE as t, defineAction as n, defineMutation as r, defineQuery a
4
4
  var a = n({
5
5
  name: "governance.export",
6
6
  input: e.Struct({ subjectId: e.String }),
7
- output: e.Record({
8
- key: e.String,
9
- value: e.Unknown
10
- }),
7
+ output: e.Record(e.String, e.Unknown),
11
8
  guards: [{ scope: t }]
12
9
  }), o = n({
13
10
  name: "governance.erase",
14
11
  input: e.Struct({
15
12
  subjectId: e.String,
16
- mode: e.optional(e.Literal("delete", "anonymize"))
13
+ mode: e.optional(e.Literals(["delete", "anonymize"]))
17
14
  }),
18
15
  output: e.Struct({
19
16
  subjectId: e.String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-governance",
3
- "version": "0.84.0",
3
+ "version": "0.85.0",
4
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
5
  "keywords": [
6
6
  "voltro",
@@ -38,12 +38,12 @@
38
38
  "node": ">=24.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@voltro/database": "0.84.0",
42
- "@voltro/protocol": "0.84.0",
43
- "@voltro/runtime": "0.84.0"
41
+ "@voltro/database": "0.85.0",
42
+ "@voltro/protocol": "0.85.0",
43
+ "@voltro/runtime": "0.85.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "effect": "^3.22.2"
46
+ "effect": "4.0.1"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"