@cosmicdrift/kumiko-types 0.265.0 → 0.266.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/package.json +1 -1
- package/src/handlers.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.266.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
package/src/handlers.ts
CHANGED
|
@@ -16,13 +16,17 @@ import type { TzContext } from "./tz-context";
|
|
|
16
16
|
|
|
17
17
|
// --- Access ---
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// "tenant-members": signed-in members may write personal data not bound to the caller by an owner rule.
|
|
20
|
+
export type OpenToAllPersonalData = "tenant-members";
|
|
21
|
+
|
|
22
|
+
export type OpenToAllDeclaration = {
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
readonly personalData?: OpenToAllPersonalData;
|
|
25
|
+
};
|
|
20
26
|
|
|
21
27
|
export type OpenToAllAccessRule = {
|
|
22
28
|
// `true` is the deprecated pre-#2855 form, kept until the call-site migration (fw#2854).
|
|
23
29
|
readonly openToAll: OpenToAllDeclaration | true;
|
|
24
|
-
// Write handler intentionally accepts personal data from any authenticated caller (boot-validator gate).
|
|
25
|
-
readonly publicIntake?: true;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
// AccessRule is DEFAULT-DENY: a handler without an access rule is not reachable.
|