@voltro/plugin-deactivation 0.87.0 → 0.89.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/guard.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Effect as e, Schema as t } from "effect";
2
- //#region src/guard.ts
2
+ // src/guard.ts
3
3
  var n = class extends t.TaggedError()("AccountDeactivated", {
4
4
  userId: t.String,
5
5
  deactivatedAt: t.String
@@ -49,5 +49,4 @@ var n = class extends t.TaggedError()("AccountDeactivated", {
49
49
  };
50
50
  };
51
51
  };
52
- //#endregion
53
52
  export { r as ACCOUNT_DEACTIVATED_CODE, n as AccountDeactivated, o as deactivationGuard, s as deactivationSubjectGuard };
package/dist/mixin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineMixin as e, reference as t, requireActors as n, timestamp as r } from "@voltro/database";
2
2
  import { audit as i } from "@voltro/plugin-audit/mixin";
3
- //#region src/mixin.ts
3
+ // src/mixin.ts
4
4
  var a = () => e({
5
5
  id: "voltro/deactivation",
6
6
  requires: [i()],
@@ -9,5 +9,4 @@ var a = () => e({
9
9
  deactivatedBy: t(n()).nullable()
10
10
  }
11
11
  });
12
- //#endregion
13
12
  export { a as deactivation };
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/privacyContract.ts
2
+ // src/privacyContract.ts
3
3
  var t = class extends e.TaggedError()("PrivacyCoordinatorFailure", {
4
4
  code: e.Literals([
5
5
  "identity_required",
@@ -39,5 +39,4 @@ var t = class extends e.TaggedError()("PrivacyCoordinatorFailure", {
39
39
  data: e.data
40
40
  }))
41
41
  });
42
- //#endregion
43
42
  export { t as PrivacyCoordinatorFailure, r as PrivacyExportPackageSchema, n as PrivacyRequestReceiptSchema, i as jsonPrivacyExport };
@@ -2,7 +2,7 @@ import { PrivacyCoordinatorFailure as e } from "./privacyContract.js";
2
2
  import { PrivacyRequestRefused as t, dataStorePrivacyRequests as n } from "./privacyRequests.js";
3
3
  import { Effect as r, Result as i } from "effect";
4
4
  import { randomUUID as a } from "node:crypto";
5
- //#region src/privacyCoordinator.ts
5
+ // src/privacyCoordinator.ts
6
6
  var o = (t) => new e({
7
7
  code: t,
8
8
  completed: [],
@@ -88,5 +88,4 @@ var o = (t) => new e({
88
88
  })
89
89
  };
90
90
  };
91
- //#endregion
92
91
  export { l as dataStorePrivacyCoordinator, c as privacyTargetFromSubject };
@@ -6,7 +6,7 @@ import { exportSelfDescriptor as u, privacyRpcClientImports as d, requestErasure
6
6
  import { Effect as h, Layer as g, Schema as _ } from "effect";
7
7
  import { fileURLToPath as v } from "node:url";
8
8
  import { definePlugin as y } from "@voltro/protocol";
9
- //#region src/privacyPlugin.ts
9
+ // src/privacyPlugin.ts
10
10
  var b = {
11
11
  slots: { exportPackage: {
12
12
  defaultExport: "jsonPrivacyExport",
@@ -135,5 +135,4 @@ var b = {
135
135
  })
136
136
  });
137
137
  };
138
- //#endregion
139
138
  export { e as PrivacyCoordinatorFailure, t as PrivacyExportPackageSchema, n as PrivacyRequestReceiptSchema, l as PrivacyService, r as jsonPrivacyExport, C as privacyPlugin, o as privacyRequestsTable, b as privacySystemContract };
@@ -1,6 +1,6 @@
1
1
  import { and as e, eq as t, gt as n, id as r, json as i, lte as a, or as o, queryFor as s, table as c, text as l, timestamp as u } from "@voltro/database";
2
2
  import { createHash as d } from "node:crypto";
3
- //#region src/privacyRequests.ts
3
+ // src/privacyRequests.ts
4
4
  var f = c("_voltro_privacy_requests", {
5
5
  id: r({ prefix: "pvreq" }),
6
6
  subjectId: l().nullable(),
@@ -217,5 +217,4 @@ var f = c("_voltro_privacy_requests", {
217
217
  })
218
218
  };
219
219
  };
220
- //#endregion
221
220
  export { g as PrivacyRequestRefused, T as dataStorePrivacyRequests, f as privacyRequestsTable };
@@ -1,7 +1,7 @@
1
1
  import { PrivacyCoordinatorFailure as e, PrivacyExportPackageSchema as t, PrivacyRequestReceiptSchema as n } from "./privacyContract.js";
2
2
  import { Schema as r } from "effect";
3
3
  import { defineAction as i } from "@voltro/protocol";
4
- //#region src/privacyRpc.ts
4
+ // src/privacyRpc.ts
5
5
  var a = r.Struct({ requestId: r.optional(r.String) }), o = r.Struct({ requestId: r.String }), s = i({
6
6
  name: "privacy.requestErasure",
7
7
  input: a,
@@ -60,5 +60,4 @@ var a = r.Struct({ requestId: r.optional(r.String) }), o = r.Struct({ requestId:
60
60
  }
61
61
  }
62
62
  ];
63
- //#endregion
64
63
  export { u as exportSelfDescriptor, d as privacyRpcClientImports, s as requestErasureDescriptor, c as requestStatusDescriptor, l as withdrawErasureDescriptor };
@@ -1,5 +1,4 @@
1
1
  import { Context as e } from "effect";
2
- //#region src/privacyService.ts
2
+ // src/privacyService.ts
3
3
  var t = class extends e.Service()("voltro/PrivacyService") {};
4
- //#endregion
5
4
  export { t as PrivacyService };
@@ -2,7 +2,7 @@ import { PrivacyCoordinatorFailure as e, jsonPrivacyExport as t } from "./privac
2
2
  import { PrivacyService as n } from "./privacyService.js";
3
3
  import { Effect as r, Layer as i } from "effect";
4
4
  import { systemPortFixture as a } from "@voltro/testing/system";
5
- //#region src/privacyTesting.ts
5
+ // src/privacyTesting.ts
6
6
  var o = () => r.fail(new e({
7
7
  code: "request_unavailable",
8
8
  completed: [],
@@ -51,5 +51,4 @@ var o = () => r.fail(new e({
51
51
  }
52
52
  }
53
53
  };
54
- //#endregion
55
54
  export { s as fakePrivacyOperations, u as privacyExportFixture, c as privacyFakeLayer, l as privacyPortFixture };
@@ -1,7 +1,7 @@
1
1
  import { PrivacyCoordinatorFailure as e, PrivacyRequestReceiptSchema as t } from "./privacyContract.js";
2
2
  import { Schema as n } from "effect";
3
3
  import { workflow as r } from "@voltro/workflow/define";
4
- //#region src/privacyWorkflow.ts
4
+ // src/privacyWorkflow.ts
5
5
  var i = r({
6
6
  name: "privacy.erase",
7
7
  payload: { requestId: n.NonEmptyString },
@@ -12,5 +12,4 @@ var i = r({
12
12
  suspendOnFailure: !0,
13
13
  internal: !0
14
14
  });
15
- //#endregion
16
15
  export { i as PrivacyErasure };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-deactivation",
3
- "version": "0.87.0",
3
+ "version": "0.89.0",
4
4
  "description": "Deactivation plugin — ships the `deactivation()` schema mixin (deactivatedAt + deactivatedBy → Actor). A deactivated subject can't log in but its data stays VISIBLE (distinct from soft-delete, which hides + anonymises). Pure schema mixin, like audit().",
5
5
  "keywords": [
6
6
  "voltro",
@@ -68,16 +68,16 @@
68
68
  "node": ">=24.0.0"
69
69
  },
70
70
  "dependencies": {
71
- "@voltro/database": "0.87.0",
72
- "@voltro/plugin-audit": "0.87.0",
73
- "@voltro/protocol": "0.87.0",
74
- "@voltro/workflow": "0.87.0",
75
- "@voltro/runtime": "0.87.0"
71
+ "@voltro/database": "0.89.0",
72
+ "@voltro/plugin-audit": "0.89.0",
73
+ "@voltro/protocol": "0.89.0",
74
+ "@voltro/workflow": "0.89.0",
75
+ "@voltro/runtime": "0.89.0"
76
76
  },
77
77
  "peerDependencies": {
78
- "@voltro/plugin-auth": "0.87.0",
79
- "effect": "4.0.1",
80
- "@voltro/testing": "0.87.0"
78
+ "@voltro/plugin-auth": "0.89.0",
79
+ "effect": "4.1.0",
80
+ "@voltro/testing": "0.89.0"
81
81
  },
82
82
  "peerDependenciesMeta": {
83
83
  "@voltro/plugin-auth": {