@fuzdev/fuz_app 0.166.0 → 0.167.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/actions/CLAUDE.md +1 -1
- package/dist/actions/action_codegen.d.ts +10 -1
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +17 -8
- package/dist/auth/CLAUDE.md +10 -8
- package/dist/auth/cell_action_specs.d.ts +6092 -1092
- package/dist/auth/cell_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_action_specs.js +96 -97
- package/dist/auth/cell_actions.d.ts.map +1 -1
- package/dist/auth/cell_actions.js +1 -0
- package/dist/auth/cell_audit_action_specs.d.ts +301 -69
- package/dist/auth/cell_audit_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_audit_action_specs.js +21 -16
- package/dist/auth/cell_audit_actions.js +2 -2
- package/dist/auth/cell_audit_events.d.ts +2 -2
- package/dist/auth/cell_audit_events.d.ts.map +1 -1
- package/dist/auth/cell_audit_metadata.d.ts +93 -30
- package/dist/auth/cell_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_audit_metadata.js +15 -14
- package/dist/auth/cell_authorize.d.ts +3 -3
- package/dist/auth/cell_authorize.js +3 -3
- package/dist/auth/cell_data_schema.d.ts +17 -9
- package/dist/auth/cell_data_schema.d.ts.map +1 -1
- package/dist/auth/cell_data_schema.js +9 -7
- package/dist/auth/cell_field_action_specs.d.ts +697 -130
- package/dist/auth/cell_field_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_field_action_specs.js +25 -27
- package/dist/auth/cell_field_actions.d.ts.map +1 -1
- package/dist/auth/cell_field_actions.js +2 -0
- package/dist/auth/cell_field_audit_metadata.d.ts +49 -13
- package/dist/auth/cell_field_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_field_audit_metadata.js +6 -6
- package/dist/auth/cell_grant_action_specs.d.ts +1044 -208
- package/dist/auth/cell_grant_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_grant_action_specs.js +36 -33
- package/dist/auth/cell_grant_actions.js +2 -2
- package/dist/auth/cell_grant_audit_metadata.d.ts +188 -40
- package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_grant_audit_metadata.js +12 -11
- package/dist/auth/cell_item_action_specs.d.ts +949 -175
- package/dist/auth/cell_item_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_item_action_specs.js +30 -34
- package/dist/auth/cell_item_actions.js +1 -1
- package/dist/auth/cell_item_audit_metadata.d.ts +68 -19
- package/dist/auth/cell_item_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_item_audit_metadata.js +9 -9
- package/dist/auth/cell_relation_list_limit.d.ts +1 -2
- package/dist/auth/cell_relation_list_limit.d.ts.map +1 -1
- package/dist/auth/cell_relation_list_limit.js +3 -8
- package/dist/db/cell_moderation.d.ts +6 -7
- package/dist/db/cell_moderation.d.ts.map +1 -1
- package/dist/db/cell_moderation.js +6 -7
- package/dist/testing/cross_backend/cell_crud.js +2 -2
- package/dist/testing/cross_backend/cell_relations.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_audit_events.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_audit_events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"cell_audit_events.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_audit_events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAsB9D;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAcjE,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
10
10
|
/**
|
|
11
11
|
* Shared metadata envelope for cell mutations. `kind` and `path` are
|
|
12
12
|
* captured at emit-time so the audit-log viewer can show useful context
|
|
@@ -17,12 +17,25 @@ import { z } from 'zod';
|
|
|
17
17
|
* Loose object: per-kind handlers may extend the metadata without spec
|
|
18
18
|
* churn.
|
|
19
19
|
*/
|
|
20
|
-
export declare const CellAuditMetadata:
|
|
21
|
-
cell_id:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
20
|
+
export declare const CellAuditMetadata: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
21
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
22
|
+
path?: string | undefined;
|
|
23
|
+
kind?: string | undefined;
|
|
24
|
+
} & Record<string, unknown>, {
|
|
25
|
+
cell_id: string;
|
|
26
|
+
path?: string | undefined;
|
|
27
|
+
kind?: string | undefined;
|
|
28
|
+
} & Record<string, unknown>, "loose_object", {
|
|
29
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
30
|
+
readonly '~types'?: {
|
|
31
|
+
readonly input: string;
|
|
32
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
33
|
+
} | undefined;
|
|
34
|
+
};
|
|
35
|
+
kind: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
36
|
+
path: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
37
|
+
}>;
|
|
38
|
+
export type CellAuditMetadata = Infer<typeof CellAuditMetadata>;
|
|
26
39
|
/**
|
|
27
40
|
* Metadata envelope for `cell_clone`.
|
|
28
41
|
*
|
|
@@ -37,38 +50,88 @@ export type CellAuditMetadata = z.infer<typeof CellAuditMetadata>;
|
|
|
37
50
|
* cloner (who owns — and can audit — the clone). Non-viewable children are
|
|
38
51
|
* dropped silently (D8).
|
|
39
52
|
*/
|
|
40
|
-
export declare const CellCloneAuditMetadata:
|
|
41
|
-
source_id:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
item_count:
|
|
45
|
-
kind
|
|
46
|
-
},
|
|
47
|
-
|
|
53
|
+
export declare const CellCloneAuditMetadata: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
54
|
+
source_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
55
|
+
deep: boolean;
|
|
56
|
+
new_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
57
|
+
item_count: number;
|
|
58
|
+
kind?: string | undefined;
|
|
59
|
+
} & Record<string, unknown>, {
|
|
60
|
+
source_id: string;
|
|
61
|
+
deep: boolean;
|
|
62
|
+
new_id: string;
|
|
63
|
+
item_count: number;
|
|
64
|
+
kind?: string | undefined;
|
|
65
|
+
} & Record<string, unknown>, "loose_object", {
|
|
66
|
+
source_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
67
|
+
readonly '~types'?: {
|
|
68
|
+
readonly input: string;
|
|
69
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
70
|
+
} | undefined;
|
|
71
|
+
};
|
|
72
|
+
new_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
73
|
+
readonly '~types'?: {
|
|
74
|
+
readonly input: string;
|
|
75
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
76
|
+
} | undefined;
|
|
77
|
+
};
|
|
78
|
+
deep: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
|
|
79
|
+
item_count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
80
|
+
kind: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
81
|
+
}>;
|
|
82
|
+
export type CellCloneAuditMetadata = Infer<typeof CellCloneAuditMetadata>;
|
|
48
83
|
/**
|
|
49
84
|
* Metadata envelope for `cell_moderate`. `cell_id` is the moderated
|
|
50
85
|
* contribution; `root_id` is its governing root (the container whose
|
|
51
86
|
* moderation authority gated the call); `moderation` is the terminal decision
|
|
52
87
|
* applied (`'approved'` | `'rejected'`).
|
|
53
88
|
*/
|
|
54
|
-
export declare const CellModerateAuditMetadata:
|
|
55
|
-
cell_id:
|
|
56
|
-
root_id:
|
|
57
|
-
moderation:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
89
|
+
export declare const CellModerateAuditMetadata: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
90
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
91
|
+
root_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
92
|
+
moderation: "rejected" | "approved";
|
|
93
|
+
} & Record<string, unknown>, {
|
|
94
|
+
cell_id: string;
|
|
95
|
+
root_id: string;
|
|
96
|
+
moderation: "rejected" | "approved";
|
|
97
|
+
} & Record<string, unknown>, "loose_object", {
|
|
98
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
99
|
+
readonly '~types'?: {
|
|
100
|
+
readonly input: string;
|
|
101
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
root_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
105
|
+
readonly '~types'?: {
|
|
106
|
+
readonly input: string;
|
|
107
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
moderation: import("@fuzdev/fuz_schema/schema.ts").Schema<"rejected" | "approved", "rejected" | "approved", "one_of", readonly ["approved", "rejected"]>;
|
|
111
|
+
}>;
|
|
112
|
+
export type CellModerateAuditMetadata = Infer<typeof CellModerateAuditMetadata>;
|
|
63
113
|
/**
|
|
64
114
|
* Metadata envelope for `cell_policy_set`. `cell_id` is the root; `policy` is
|
|
65
115
|
* the policy written (`null` when cleared) and `previous_policy` the one it
|
|
66
116
|
* replaced, so the audit trail carries every policy a root has had.
|
|
67
117
|
*/
|
|
68
|
-
export declare const CellPolicySetAuditMetadata:
|
|
69
|
-
cell_id:
|
|
70
|
-
policy:
|
|
71
|
-
previous_policy:
|
|
72
|
-
},
|
|
73
|
-
|
|
118
|
+
export declare const CellPolicySetAuditMetadata: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
119
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
120
|
+
policy: ({} & Record<string, unknown>) | null;
|
|
121
|
+
previous_policy: ({} & Record<string, unknown>) | null;
|
|
122
|
+
} & Record<string, unknown>, {
|
|
123
|
+
cell_id: string;
|
|
124
|
+
policy: ({} & Record<string, unknown>) | null;
|
|
125
|
+
previous_policy: ({} & Record<string, unknown>) | null;
|
|
126
|
+
} & Record<string, unknown>, "loose_object", {
|
|
127
|
+
cell_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
128
|
+
readonly '~types'?: {
|
|
129
|
+
readonly input: string;
|
|
130
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
policy: import("@fuzdev/fuz_schema/schema.ts").Schema<({} & Record<string, unknown>) | null, ({} & Record<string, unknown>) | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{} & Record<string, unknown>, {} & Record<string, unknown>, "loose_object", {}>>>;
|
|
134
|
+
previous_policy: import("@fuzdev/fuz_schema/schema.ts").Schema<({} & Record<string, unknown>) | null, ({} & Record<string, unknown>) | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{} & Record<string, unknown>, {} & Record<string, unknown>, "loose_object", {}>>>;
|
|
135
|
+
}>;
|
|
136
|
+
export type CellPolicySetAuditMetadata = Infer<typeof CellPolicySetAuditMetadata>;
|
|
74
137
|
//# sourceMappingURL=cell_audit_metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_audit_metadata.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_audit_metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"cell_audit_metadata.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_audit_metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAUN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAKtC;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;EAI5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;EAIrC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import { Uuid } from '../
|
|
9
|
+
import { boolean, loose_object, min_value, nullable, number, optional, pipe, safe_integer, string } from '@fuzdev/fuz_schema/schema.ts';
|
|
10
|
+
import { Uuid } from '../primitive_schemas_fuz.js';
|
|
11
|
+
import { CellModerationDecision, CellPolicy } from './cell_action_specs.js';
|
|
11
12
|
/**
|
|
12
13
|
* Shared metadata envelope for cell mutations. `kind` and `path` are
|
|
13
14
|
* captured at emit-time so the audit-log viewer can show useful context
|
|
@@ -18,10 +19,10 @@ import { Uuid } from '../primitive_schemas.js';
|
|
|
18
19
|
* Loose object: per-kind handlers may extend the metadata without spec
|
|
19
20
|
* churn.
|
|
20
21
|
*/
|
|
21
|
-
export const CellAuditMetadata =
|
|
22
|
+
export const CellAuditMetadata = loose_object({
|
|
22
23
|
cell_id: Uuid,
|
|
23
|
-
kind:
|
|
24
|
-
path:
|
|
24
|
+
kind: optional(string),
|
|
25
|
+
path: optional(string)
|
|
25
26
|
});
|
|
26
27
|
/**
|
|
27
28
|
* Metadata envelope for `cell_clone`.
|
|
@@ -37,12 +38,12 @@ export const CellAuditMetadata = z.looseObject({
|
|
|
37
38
|
* cloner (who owns — and can audit — the clone). Non-viewable children are
|
|
38
39
|
* dropped silently (D8).
|
|
39
40
|
*/
|
|
40
|
-
export const CellCloneAuditMetadata =
|
|
41
|
+
export const CellCloneAuditMetadata = loose_object({
|
|
41
42
|
source_id: Uuid,
|
|
42
43
|
new_id: Uuid,
|
|
43
|
-
deep:
|
|
44
|
-
item_count:
|
|
45
|
-
kind:
|
|
44
|
+
deep: boolean,
|
|
45
|
+
item_count: pipe(number, safe_integer, min_value(0)),
|
|
46
|
+
kind: optional(string)
|
|
46
47
|
});
|
|
47
48
|
/**
|
|
48
49
|
* Metadata envelope for `cell_moderate`. `cell_id` is the moderated
|
|
@@ -50,18 +51,18 @@ export const CellCloneAuditMetadata = z.looseObject({
|
|
|
50
51
|
* moderation authority gated the call); `moderation` is the terminal decision
|
|
51
52
|
* applied (`'approved'` | `'rejected'`).
|
|
52
53
|
*/
|
|
53
|
-
export const CellModerateAuditMetadata =
|
|
54
|
+
export const CellModerateAuditMetadata = loose_object({
|
|
54
55
|
cell_id: Uuid,
|
|
55
56
|
root_id: Uuid,
|
|
56
|
-
moderation:
|
|
57
|
+
moderation: CellModerationDecision
|
|
57
58
|
});
|
|
58
59
|
/**
|
|
59
60
|
* Metadata envelope for `cell_policy_set`. `cell_id` is the root; `policy` is
|
|
60
61
|
* the policy written (`null` when cleared) and `previous_policy` the one it
|
|
61
62
|
* replaced, so the audit trail carries every policy a root has had.
|
|
62
63
|
*/
|
|
63
|
-
export const CellPolicySetAuditMetadata =
|
|
64
|
+
export const CellPolicySetAuditMetadata = loose_object({
|
|
64
65
|
cell_id: Uuid,
|
|
65
|
-
policy:
|
|
66
|
-
previous_policy:
|
|
66
|
+
policy: nullable(CellPolicy),
|
|
67
|
+
previous_policy: nullable(CellPolicy)
|
|
67
68
|
});
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
* (`has_scoped_role(auth, ROLE_ADMIN, null)`), never a scoped one.
|
|
38
38
|
*
|
|
39
39
|
* Moderation gates the audience: a cell's effective audience is its
|
|
40
|
-
* visibility or grants **and** its admission, so a pending
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* visibility or grants **and** its admission, so a pending or rejected
|
|
41
|
+
* contribution is readable through `can_view_cell` by its owner and a global
|
|
42
|
+
* admin alone, whatever its `visibility` or grants say. The
|
|
43
43
|
* `editor` grant arm of `can_edit_cell` follows the same admission; the owner,
|
|
44
44
|
* admin, and manage arms don't consult it.
|
|
45
45
|
*
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
* (`has_scoped_role(auth, ROLE_ADMIN, null)`), never a scoped one.
|
|
38
38
|
*
|
|
39
39
|
* Moderation gates the audience: a cell's effective audience is its
|
|
40
|
-
* visibility or grants **and** its admission, so a pending
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* visibility or grants **and** its admission, so a pending or rejected
|
|
41
|
+
* contribution is readable through `can_view_cell` by its owner and a global
|
|
42
|
+
* admin alone, whatever its `visibility` or grants say. The
|
|
43
43
|
* `editor` grant arm of `can_edit_cell` follows the same admission; the owner,
|
|
44
44
|
* admin, and manage arms don't consult it.
|
|
45
45
|
*
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The wire-side shape every cell consumer can read without per-kind
|
|
5
5
|
* knowledge: a permissive bag with two universally-relevant typed
|
|
6
|
-
* fields.
|
|
6
|
+
* fields. A per-kind schema spreads its `def`
|
|
7
|
+
* (`loose_object({...CellData.def, ...})`).
|
|
7
8
|
*
|
|
8
|
-
* Loose object: arbitrary additional
|
|
9
|
-
* preserving the "unknown kinds ship without
|
|
9
|
+
* Loose object (`@fuzdev/fuz_schema`'s `loose_object`): arbitrary additional
|
|
10
|
+
* fields pass through unvalidated, preserving the "unknown kinds ship without
|
|
11
|
+
* RPC churn" property. Per-kind
|
|
10
12
|
* shape enforcement is opt-in via the `validate_data` deps slot — see
|
|
11
13
|
* `auth/cell_actions.ts`.
|
|
12
14
|
*
|
|
@@ -32,16 +34,22 @@
|
|
|
32
34
|
*
|
|
33
35
|
* @module
|
|
34
36
|
*/
|
|
35
|
-
import {
|
|
37
|
+
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
36
38
|
/**
|
|
37
39
|
* Base cell-data shape. All fields optional; loose mode admits arbitrary
|
|
38
40
|
* additional keys so apps can attach metadata or stage new kinds without
|
|
39
41
|
* touching the wire schema. `kind` lives on the top-level `cell.kind`
|
|
40
42
|
* column, not here (see the module doc).
|
|
41
43
|
*/
|
|
42
|
-
export declare const CellData:
|
|
43
|
-
label
|
|
44
|
-
summary
|
|
45
|
-
},
|
|
46
|
-
|
|
44
|
+
export declare const CellData: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
45
|
+
label?: string | undefined;
|
|
46
|
+
summary?: string | undefined;
|
|
47
|
+
} & Record<string, unknown>, {
|
|
48
|
+
label?: string | undefined;
|
|
49
|
+
summary?: string | undefined;
|
|
50
|
+
} & Record<string, unknown>, "loose_object", {
|
|
51
|
+
label: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
52
|
+
summary: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
53
|
+
}>;
|
|
54
|
+
export type CellData = Infer<typeof CellData>;
|
|
47
55
|
//# sourceMappingURL=cell_data_schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_data_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_data_schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cell_data_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_data_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAkC,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;EAGnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The wire-side shape every cell consumer can read without per-kind
|
|
5
5
|
* knowledge: a permissive bag with two universally-relevant typed
|
|
6
|
-
* fields.
|
|
6
|
+
* fields. A per-kind schema spreads its `def`
|
|
7
|
+
* (`loose_object({...CellData.def, ...})`).
|
|
7
8
|
*
|
|
8
|
-
* Loose object: arbitrary additional
|
|
9
|
-
* preserving the "unknown kinds ship without
|
|
9
|
+
* Loose object (`@fuzdev/fuz_schema`'s `loose_object`): arbitrary additional
|
|
10
|
+
* fields pass through unvalidated, preserving the "unknown kinds ship without
|
|
11
|
+
* RPC churn" property. Per-kind
|
|
10
12
|
* shape enforcement is opt-in via the `validate_data` deps slot — see
|
|
11
13
|
* `auth/cell_actions.ts`.
|
|
12
14
|
*
|
|
@@ -32,14 +34,14 @@
|
|
|
32
34
|
*
|
|
33
35
|
* @module
|
|
34
36
|
*/
|
|
35
|
-
import {
|
|
37
|
+
import { loose_object, optional, string } from '@fuzdev/fuz_schema/schema.ts';
|
|
36
38
|
/**
|
|
37
39
|
* Base cell-data shape. All fields optional; loose mode admits arbitrary
|
|
38
40
|
* additional keys so apps can attach metadata or stage new kinds without
|
|
39
41
|
* touching the wire schema. `kind` lives on the top-level `cell.kind`
|
|
40
42
|
* column, not here (see the module doc).
|
|
41
43
|
*/
|
|
42
|
-
export const CellData =
|
|
43
|
-
label:
|
|
44
|
-
summary:
|
|
44
|
+
export const CellData = loose_object({
|
|
45
|
+
label: optional(string),
|
|
46
|
+
summary: optional(string)
|
|
45
47
|
});
|