@fuzdev/fuz_app 0.155.0 → 0.156.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 +27 -14
- package/dist/actions/action_codegen.d.ts +10 -3
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +52 -13
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event.js +13 -11
- package/dist/actions/action_rpc.d.ts +4 -3
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +4 -3
- package/dist/actions/action_spec.d.ts +102 -206
- package/dist/actions/action_spec.d.ts.map +1 -1
- package/dist/actions/action_spec.js +18 -96
- package/dist/actions/action_types.d.ts +4 -4
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/action_types.js +2 -2
- package/dist/actions/broadcast_api.d.ts.map +1 -1
- package/dist/actions/broadcast_api.js +6 -5
- package/dist/actions/compile_action_registry.d.ts +11 -6
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.js +15 -9
- package/dist/actions/perform_action.d.ts +4 -4
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +11 -11
- package/dist/auth/CLAUDE.md +1 -1
- package/dist/auth/account_action_specs.d.ts +50 -23
- package/dist/auth/account_action_specs.d.ts.map +1 -1
- package/dist/auth/account_action_specs.js +18 -8
- package/dist/auth/account_route_schema.d.ts +10 -10
- package/dist/auth/account_schema.d.ts +21 -21
- package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
- package/dist/auth/actor_search_action_specs.d.ts +6 -6
- package/dist/auth/admin_action_specs.d.ts +98 -98
- package/dist/auth/app_settings_schema.d.ts +2 -2
- package/dist/auth/audit_log_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_schema.d.ts +44 -44
- package/dist/auth/auth_guard_resolver.d.ts +2 -2
- package/dist/auth/auth_guard_resolver.js +2 -2
- package/dist/auth/bootstrap_route_schema.d.ts +4 -4
- package/dist/auth/cell_action_specs.d.ts +241 -241
- package/dist/auth/cell_actions.js +3 -3
- package/dist/auth/cell_audit_action_specs.d.ts +14 -14
- package/dist/auth/cell_audit_metadata.d.ts +6 -6
- package/dist/auth/cell_field_action_specs.d.ts +38 -38
- package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
- package/dist/auth/cell_grant_action_specs.d.ts +61 -61
- package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
- package/dist/auth/cell_item_action_specs.d.ts +50 -50
- package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
- package/dist/auth/invite_schema.d.ts +6 -6
- package/dist/auth/role_grant_offer_action_specs.d.ts +120 -120
- package/dist/auth/role_grant_offer_notifications.d.ts +66 -66
- package/dist/auth/role_grant_offer_schema.d.ts +6 -6
- package/dist/auth/self_service_role_action_specs.d.ts +2 -2
- package/dist/auth/signup_route_schema.d.ts +2 -2
- package/dist/http/CLAUDE.md +9 -8
- package/dist/http/auth_shape.d.ts +54 -17
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +104 -52
- package/dist/http/error_schemas.d.ts +6 -4
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +4 -9
- package/dist/http/jsonrpc_errors.d.ts +11 -4
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.js +11 -4
- package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
- package/dist/http/jsonrpc_helpers.js +2 -1
- package/dist/http/route_spec.d.ts +3 -2
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +20 -8
- package/dist/http/schema_helpers.d.ts +24 -20
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +24 -19
- package/dist/primitive_schemas.d.ts +10 -3
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +10 -2
- package/dist/primitive_schemas_fuz.d.ts +69 -0
- package/dist/primitive_schemas_fuz.d.ts.map +1 -0
- package/dist/primitive_schemas_fuz.js +49 -0
- package/dist/realtime/sse.d.ts +3 -3
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +4 -4
- package/dist/schema_issues.d.ts +91 -4
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_issues.js +262 -1
- package/dist/schema_meta.d.ts +24 -8
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +31 -10
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +2 -1
- package/dist/testing/CLAUDE.md +17 -11
- package/dist/testing/adversarial_input_cases.d.ts +18 -23
- package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
- package/dist/testing/adversarial_input_cases.js +51 -46
- package/dist/testing/cross_backend/action_manifest.d.ts +2 -1
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +3 -3
- package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_crud.js +3 -8
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +5 -4
- package/dist/testing/cross_backend/cross_rpc.d.ts +4 -2
- package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
- package/dist/testing/cross_backend/cross_rpc.js +6 -4
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.js +3 -2
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +8 -8
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +4 -3
- package/dist/testing/rpc_envelope_cases.d.ts +3 -3
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.js +1 -1
- package/dist/testing/rpc_helpers.d.ts +12 -8
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +18 -15
- package/dist/testing/schema_generators.d.ts +75 -40
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_generators.js +273 -99
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +4 -3
- package/dist/ui/admin_accounts_state.svelte.d.ts +10 -10
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_sessions_state.svelte.d.ts +2 -2
- package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/role_grant_offers_state.svelte.d.ts +6 -6
- package/dist/zod.d.ts +23 -5
- package/dist/zod.d.ts.map +1 -1
- package/dist/zod.js +2 -2
- package/package.json +6 -6
|
@@ -55,11 +55,11 @@ export type CellGrantLevel = z.infer<typeof CellGrantLevel>;
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const CellGrantPrincipalInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
57
|
kind: z.ZodLiteral<"actor">;
|
|
58
|
-
actor_id: z.
|
|
58
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
59
59
|
}, z.core.$strict>, z.ZodObject<{
|
|
60
60
|
kind: z.ZodLiteral<"role">;
|
|
61
61
|
role: z.ZodString;
|
|
62
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
62
|
+
scope_id: z.ZodOptional<z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>>;
|
|
63
63
|
}, z.core.$strict>], "kind">;
|
|
64
64
|
export type CellGrantPrincipalInput = z.infer<typeof CellGrantPrincipalInput>;
|
|
65
65
|
/**
|
|
@@ -68,16 +68,16 @@ export type CellGrantPrincipalInput = z.infer<typeof CellGrantPrincipalInput>;
|
|
|
68
68
|
* inspects `actor_id` xor `role` to render the right principal label.
|
|
69
69
|
*/
|
|
70
70
|
export declare const GrantJson: z.ZodObject<{
|
|
71
|
-
id: z.
|
|
72
|
-
cell_id: z.
|
|
71
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
72
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
73
73
|
level: z.ZodEnum<{
|
|
74
74
|
viewer: "viewer";
|
|
75
75
|
editor: "editor";
|
|
76
76
|
}>;
|
|
77
|
-
actor_id: z.ZodNullable<z.
|
|
77
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
78
78
|
role: z.ZodNullable<z.ZodString>;
|
|
79
|
-
scope_id: z.ZodNullable<z.
|
|
80
|
-
granted_by: z.ZodNullable<z.
|
|
79
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
80
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
81
81
|
created_at: z.ZodString;
|
|
82
82
|
}, z.core.$strict>;
|
|
83
83
|
export type GrantJson = z.infer<typeof GrantJson>;
|
|
@@ -87,41 +87,41 @@ export type GrantJson = z.infer<typeof GrantJson>;
|
|
|
87
87
|
* `granted_by` rather than producing a duplicate row.
|
|
88
88
|
*/
|
|
89
89
|
export declare const CellGrantCreateInput: z.ZodObject<{
|
|
90
|
-
cell_id: z.
|
|
90
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
91
91
|
level: z.ZodEnum<{
|
|
92
92
|
viewer: "viewer";
|
|
93
93
|
editor: "editor";
|
|
94
94
|
}>;
|
|
95
95
|
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
96
|
kind: z.ZodLiteral<"actor">;
|
|
97
|
-
actor_id: z.
|
|
97
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
98
98
|
}, z.core.$strict>, z.ZodObject<{
|
|
99
99
|
kind: z.ZodLiteral<"role">;
|
|
100
100
|
role: z.ZodString;
|
|
101
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
101
|
+
scope_id: z.ZodOptional<z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>>;
|
|
102
102
|
}, z.core.$strict>], "kind">;
|
|
103
|
-
acting: z.ZodOptional<z.
|
|
103
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
104
104
|
}, z.core.$strict>;
|
|
105
105
|
export type CellGrantCreateInput = z.infer<typeof CellGrantCreateInput>;
|
|
106
106
|
export declare const CellGrantCreateOutput: z.ZodObject<{
|
|
107
107
|
grant: z.ZodObject<{
|
|
108
|
-
id: z.
|
|
109
|
-
cell_id: z.
|
|
108
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
109
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
110
110
|
level: z.ZodEnum<{
|
|
111
111
|
viewer: "viewer";
|
|
112
112
|
editor: "editor";
|
|
113
113
|
}>;
|
|
114
|
-
actor_id: z.ZodNullable<z.
|
|
114
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
115
115
|
role: z.ZodNullable<z.ZodString>;
|
|
116
|
-
scope_id: z.ZodNullable<z.
|
|
117
|
-
granted_by: z.ZodNullable<z.
|
|
116
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
117
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
118
118
|
created_at: z.ZodString;
|
|
119
119
|
}, z.core.$strict>;
|
|
120
120
|
}, z.core.$strict>;
|
|
121
121
|
export type CellGrantCreateOutput = z.infer<typeof CellGrantCreateOutput>;
|
|
122
122
|
export declare const CellGrantRevokeInput: z.ZodObject<{
|
|
123
|
-
grant_id: z.
|
|
124
|
-
acting: z.ZodOptional<z.
|
|
123
|
+
grant_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
124
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
125
125
|
}, z.core.$strict>;
|
|
126
126
|
export type CellGrantRevokeInput = z.infer<typeof CellGrantRevokeInput>;
|
|
127
127
|
/**
|
|
@@ -136,22 +136,22 @@ export declare const CellGrantRevokeOutput: z.ZodObject<{
|
|
|
136
136
|
}, z.core.$strict>;
|
|
137
137
|
export type CellGrantRevokeOutput = z.infer<typeof CellGrantRevokeOutput>;
|
|
138
138
|
export declare const CellGrantListInput: z.ZodObject<{
|
|
139
|
-
cell_id: z.
|
|
140
|
-
acting: z.ZodOptional<z.
|
|
139
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
140
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
141
141
|
}, z.core.$strict>;
|
|
142
142
|
export type CellGrantListInput = z.infer<typeof CellGrantListInput>;
|
|
143
143
|
export declare const CellGrantListOutput: z.ZodObject<{
|
|
144
144
|
grants: z.ZodArray<z.ZodObject<{
|
|
145
|
-
id: z.
|
|
146
|
-
cell_id: z.
|
|
145
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
146
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
147
147
|
level: z.ZodEnum<{
|
|
148
148
|
viewer: "viewer";
|
|
149
149
|
editor: "editor";
|
|
150
150
|
}>;
|
|
151
|
-
actor_id: z.ZodNullable<z.
|
|
151
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
152
152
|
role: z.ZodNullable<z.ZodString>;
|
|
153
|
-
scope_id: z.ZodNullable<z.
|
|
154
|
-
granted_by: z.ZodNullable<z.
|
|
153
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
154
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
155
155
|
created_at: z.ZodString;
|
|
156
156
|
}, z.core.$strict>>;
|
|
157
157
|
}, z.core.$strict>;
|
|
@@ -166,33 +166,33 @@ export declare const cell_grant_create_action_spec: {
|
|
|
166
166
|
};
|
|
167
167
|
side_effects: true;
|
|
168
168
|
input: z.ZodObject<{
|
|
169
|
-
cell_id: z.
|
|
169
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
170
170
|
level: z.ZodEnum<{
|
|
171
171
|
viewer: "viewer";
|
|
172
172
|
editor: "editor";
|
|
173
173
|
}>;
|
|
174
174
|
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
175
175
|
kind: z.ZodLiteral<"actor">;
|
|
176
|
-
actor_id: z.
|
|
176
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
177
177
|
}, z.core.$strict>, z.ZodObject<{
|
|
178
178
|
kind: z.ZodLiteral<"role">;
|
|
179
179
|
role: z.ZodString;
|
|
180
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
180
|
+
scope_id: z.ZodOptional<z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>>;
|
|
181
181
|
}, z.core.$strict>], "kind">;
|
|
182
|
-
acting: z.ZodOptional<z.
|
|
182
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
183
183
|
}, z.core.$strict>;
|
|
184
184
|
output: z.ZodObject<{
|
|
185
185
|
grant: z.ZodObject<{
|
|
186
|
-
id: z.
|
|
187
|
-
cell_id: z.
|
|
186
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
187
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
188
188
|
level: z.ZodEnum<{
|
|
189
189
|
viewer: "viewer";
|
|
190
190
|
editor: "editor";
|
|
191
191
|
}>;
|
|
192
|
-
actor_id: z.ZodNullable<z.
|
|
192
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
193
193
|
role: z.ZodNullable<z.ZodString>;
|
|
194
|
-
scope_id: z.ZodNullable<z.
|
|
195
|
-
granted_by: z.ZodNullable<z.
|
|
194
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
195
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
196
196
|
created_at: z.ZodString;
|
|
197
197
|
}, z.core.$strict>;
|
|
198
198
|
}, z.core.$strict>;
|
|
@@ -209,8 +209,8 @@ export declare const cell_grant_revoke_action_spec: {
|
|
|
209
209
|
};
|
|
210
210
|
side_effects: true;
|
|
211
211
|
input: z.ZodObject<{
|
|
212
|
-
grant_id: z.
|
|
213
|
-
acting: z.ZodOptional<z.
|
|
212
|
+
grant_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
213
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
214
214
|
}, z.core.$strict>;
|
|
215
215
|
output: z.ZodObject<{
|
|
216
216
|
ok: z.ZodLiteral<true>;
|
|
@@ -229,21 +229,21 @@ export declare const cell_grant_list_action_spec: {
|
|
|
229
229
|
};
|
|
230
230
|
side_effects: false;
|
|
231
231
|
input: z.ZodObject<{
|
|
232
|
-
cell_id: z.
|
|
233
|
-
acting: z.ZodOptional<z.
|
|
232
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
233
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
234
234
|
}, z.core.$strict>;
|
|
235
235
|
output: z.ZodObject<{
|
|
236
236
|
grants: z.ZodArray<z.ZodObject<{
|
|
237
|
-
id: z.
|
|
238
|
-
cell_id: z.
|
|
237
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
238
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
239
239
|
level: z.ZodEnum<{
|
|
240
240
|
viewer: "viewer";
|
|
241
241
|
editor: "editor";
|
|
242
242
|
}>;
|
|
243
|
-
actor_id: z.ZodNullable<z.
|
|
243
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
244
244
|
role: z.ZodNullable<z.ZodString>;
|
|
245
|
-
scope_id: z.ZodNullable<z.
|
|
246
|
-
granted_by: z.ZodNullable<z.
|
|
245
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
246
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
247
247
|
created_at: z.ZodString;
|
|
248
248
|
}, z.core.$strict>>;
|
|
249
249
|
}, z.core.$strict>;
|
|
@@ -261,33 +261,33 @@ export declare const all_cell_grant_action_specs: readonly [{
|
|
|
261
261
|
};
|
|
262
262
|
side_effects: true;
|
|
263
263
|
input: z.ZodObject<{
|
|
264
|
-
cell_id: z.
|
|
264
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
265
265
|
level: z.ZodEnum<{
|
|
266
266
|
viewer: "viewer";
|
|
267
267
|
editor: "editor";
|
|
268
268
|
}>;
|
|
269
269
|
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
270
|
kind: z.ZodLiteral<"actor">;
|
|
271
|
-
actor_id: z.
|
|
271
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
272
272
|
}, z.core.$strict>, z.ZodObject<{
|
|
273
273
|
kind: z.ZodLiteral<"role">;
|
|
274
274
|
role: z.ZodString;
|
|
275
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
275
|
+
scope_id: z.ZodOptional<z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>>;
|
|
276
276
|
}, z.core.$strict>], "kind">;
|
|
277
|
-
acting: z.ZodOptional<z.
|
|
277
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
278
278
|
}, z.core.$strict>;
|
|
279
279
|
output: z.ZodObject<{
|
|
280
280
|
grant: z.ZodObject<{
|
|
281
|
-
id: z.
|
|
282
|
-
cell_id: z.
|
|
281
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
282
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
283
283
|
level: z.ZodEnum<{
|
|
284
284
|
viewer: "viewer";
|
|
285
285
|
editor: "editor";
|
|
286
286
|
}>;
|
|
287
|
-
actor_id: z.ZodNullable<z.
|
|
287
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
288
288
|
role: z.ZodNullable<z.ZodString>;
|
|
289
|
-
scope_id: z.ZodNullable<z.
|
|
290
|
-
granted_by: z.ZodNullable<z.
|
|
289
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
290
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
291
291
|
created_at: z.ZodString;
|
|
292
292
|
}, z.core.$strict>;
|
|
293
293
|
}, z.core.$strict>;
|
|
@@ -303,8 +303,8 @@ export declare const all_cell_grant_action_specs: readonly [{
|
|
|
303
303
|
};
|
|
304
304
|
side_effects: true;
|
|
305
305
|
input: z.ZodObject<{
|
|
306
|
-
grant_id: z.
|
|
307
|
-
acting: z.ZodOptional<z.
|
|
306
|
+
grant_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
307
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
308
308
|
}, z.core.$strict>;
|
|
309
309
|
output: z.ZodObject<{
|
|
310
310
|
ok: z.ZodLiteral<true>;
|
|
@@ -322,21 +322,21 @@ export declare const all_cell_grant_action_specs: readonly [{
|
|
|
322
322
|
};
|
|
323
323
|
side_effects: false;
|
|
324
324
|
input: z.ZodObject<{
|
|
325
|
-
cell_id: z.
|
|
326
|
-
acting: z.ZodOptional<z.
|
|
325
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
326
|
+
acting: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
327
327
|
}, z.core.$strict>;
|
|
328
328
|
output: z.ZodObject<{
|
|
329
329
|
grants: z.ZodArray<z.ZodObject<{
|
|
330
|
-
id: z.
|
|
331
|
-
cell_id: z.
|
|
330
|
+
id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
331
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
332
332
|
level: z.ZodEnum<{
|
|
333
333
|
viewer: "viewer";
|
|
334
334
|
editor: "editor";
|
|
335
335
|
}>;
|
|
336
|
-
actor_id: z.ZodNullable<z.
|
|
336
|
+
actor_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
337
337
|
role: z.ZodNullable<z.ZodString>;
|
|
338
|
-
scope_id: z.ZodNullable<z.
|
|
339
|
-
granted_by: z.ZodNullable<z.
|
|
338
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
339
|
+
granted_by: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
340
340
|
created_at: z.ZodString;
|
|
341
341
|
}, z.core.$strict>>;
|
|
342
342
|
}, z.core.$strict>;
|
|
@@ -18,10 +18,10 @@ import { z } from 'zod';
|
|
|
18
18
|
* carry only the id; names are never persisted in the audit envelope.
|
|
19
19
|
*/
|
|
20
20
|
export declare const CellGrantPrincipalAuditMetadata: z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
-
actor_id: z.
|
|
21
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
22
22
|
}, z.core.$loose>, z.ZodObject<{
|
|
23
23
|
role: z.ZodString;
|
|
24
|
-
scope_id: z.ZodNullable<z.
|
|
24
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
25
25
|
}, z.core.$loose>]>;
|
|
26
26
|
export type CellGrantPrincipalAuditMetadata = z.infer<typeof CellGrantPrincipalAuditMetadata>;
|
|
27
27
|
/**
|
|
@@ -33,17 +33,17 @@ export type CellGrantPrincipalAuditMetadata = z.infer<typeof CellGrantPrincipalA
|
|
|
33
33
|
* the two at the metadata level.
|
|
34
34
|
*/
|
|
35
35
|
export declare const CellGrantCreateAuditMetadata: z.ZodObject<{
|
|
36
|
-
cell_id: z.
|
|
37
|
-
grant_id: z.
|
|
36
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
37
|
+
grant_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
38
38
|
level: z.ZodEnum<{
|
|
39
39
|
viewer: "viewer";
|
|
40
40
|
editor: "editor";
|
|
41
41
|
}>;
|
|
42
42
|
principal: z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
-
actor_id: z.
|
|
43
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
44
44
|
}, z.core.$loose>, z.ZodObject<{
|
|
45
45
|
role: z.ZodString;
|
|
46
|
-
scope_id: z.ZodNullable<z.
|
|
46
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
47
47
|
}, z.core.$loose>]>;
|
|
48
48
|
}, z.core.$loose>;
|
|
49
49
|
export type CellGrantCreateAuditMetadata = z.infer<typeof CellGrantCreateAuditMetadata>;
|
|
@@ -59,17 +59,17 @@ export type CellGrantCreateAuditMetadata = z.infer<typeof CellGrantCreateAuditMe
|
|
|
59
59
|
* surface-doubling with parallel events.
|
|
60
60
|
*/
|
|
61
61
|
export declare const CellGrantRevokeAuditMetadata: z.ZodObject<{
|
|
62
|
-
cell_id: z.
|
|
63
|
-
grant_id: z.
|
|
62
|
+
cell_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
63
|
+
grant_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
64
64
|
level: z.ZodEnum<{
|
|
65
65
|
viewer: "viewer";
|
|
66
66
|
editor: "editor";
|
|
67
67
|
}>;
|
|
68
68
|
principal: z.ZodUnion<readonly [z.ZodObject<{
|
|
69
|
-
actor_id: z.
|
|
69
|
+
actor_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
|
|
70
70
|
}, z.core.$loose>, z.ZodObject<{
|
|
71
71
|
role: z.ZodString;
|
|
72
|
-
scope_id: z.ZodNullable<z.
|
|
72
|
+
scope_id: z.ZodNullable<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
|
|
73
73
|
}, z.core.$loose>]>;
|
|
74
74
|
self: z.ZodOptional<z.ZodLiteral<true>>;
|
|
75
75
|
steward: z.ZodOptional<z.ZodLiteral<true>>;
|