@fuzdev/fuz_app 0.155.1 → 0.157.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 +26 -17
- package/dist/http/auth_shape.d.ts +51 -17
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +101 -52
- package/dist/http/error_schemas.d.ts +15 -8
- 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 +37 -19
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +54 -24
- package/dist/http/schema_helpers.d.ts +27 -24
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +24 -19
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +7 -3
- package/dist/primitive_schemas.d.ts +16 -5
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +26 -4
- package/dist/primitive_schemas_fuz.d.ts +67 -0
- package/dist/primitive_schemas_fuz.d.ts.map +1 -0
- package/dist/primitive_schemas_fuz.js +47 -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 +23 -17
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +3 -2
- package/dist/testing/adversarial_404.d.ts +2 -2
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_404.js +8 -5
- package/dist/testing/adversarial_input.js +1 -1
- 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/assertions.d.ts +6 -5
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/assertions.js +9 -4
- 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/error_coverage.d.ts +9 -17
- package/dist/testing/error_coverage.d.ts.map +1 -1
- package/dist/testing/error_coverage.js +20 -3
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +7 -6
- 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
|
@@ -17,14 +17,14 @@ export interface AppSettings {
|
|
|
17
17
|
export declare const AppSettingsJson: z.ZodObject<{
|
|
18
18
|
open_signup: z.ZodBoolean;
|
|
19
19
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
20
|
-
updated_by: z.ZodNullable<z.
|
|
20
|
+
updated_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>>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
export type AppSettingsJson = z.infer<typeof AppSettingsJson>;
|
|
23
23
|
/** Zod schema for admin app settings with resolved updater username. */
|
|
24
24
|
export declare const AppSettingsWithUsernameJson: z.ZodObject<{
|
|
25
25
|
open_signup: z.ZodBoolean;
|
|
26
26
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
27
|
-
updated_by: z.ZodNullable<z.
|
|
27
|
+
updated_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>>>;
|
|
28
28
|
updated_by_username: z.ZodNullable<z.ZodString>;
|
|
29
29
|
}, z.core.$strict>;
|
|
30
30
|
export type AppSettingsWithUsernameJson = z.infer<typeof AppSettingsWithUsernameJson>;
|
|
@@ -14,7 +14,7 @@ import { z } from 'zod';
|
|
|
14
14
|
import type { RouteSpec } from '../http/route_spec.js';
|
|
15
15
|
/** Query schema for the audit-log SSE route — multi-actor admins pass `?acting=<uuid>`. */
|
|
16
16
|
export declare const AuditStreamQuery: z.ZodObject<{
|
|
17
|
-
acting: z.ZodOptional<z.
|
|
17
|
+
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>>>;
|
|
18
18
|
}, z.core.$strict>;
|
|
19
19
|
export type AuditStreamQuery = z.infer<typeof AuditStreamQuery>;
|
|
20
20
|
/** Default role required to access the audit-log SSE route. */
|
|
@@ -154,7 +154,7 @@ export declare const audit_metadata_schemas: Readonly<{
|
|
|
154
154
|
}, z.core.$loose>>;
|
|
155
155
|
signup: z.ZodObject<{
|
|
156
156
|
username: z.ZodString;
|
|
157
|
-
invite_id: z.ZodOptional<z.
|
|
157
|
+
invite_id: 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>>>;
|
|
158
158
|
open_signup: z.ZodOptional<z.ZodBoolean>;
|
|
159
159
|
reason: z.ZodOptional<z.ZodString>;
|
|
160
160
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -182,7 +182,7 @@ export declare const audit_metadata_schemas: Readonly<{
|
|
|
182
182
|
session_revoke_all: z.ZodObject<{
|
|
183
183
|
count: z.ZodOptional<z.ZodNumber>;
|
|
184
184
|
reason: z.ZodOptional<z.ZodString>;
|
|
185
|
-
attempted_account_id: z.ZodOptional<z.
|
|
185
|
+
attempted_account_id: 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>>>;
|
|
186
186
|
credential_type: z.ZodOptional<z.ZodEnum<{
|
|
187
187
|
daemon_token: "daemon_token";
|
|
188
188
|
session: "session";
|
|
@@ -209,89 +209,89 @@ export declare const audit_metadata_schemas: Readonly<{
|
|
|
209
209
|
token_revoke_all: z.ZodObject<{
|
|
210
210
|
count: z.ZodOptional<z.ZodNumber>;
|
|
211
211
|
reason: z.ZodOptional<z.ZodString>;
|
|
212
|
-
attempted_account_id: z.ZodOptional<z.
|
|
212
|
+
attempted_account_id: 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>>>;
|
|
213
213
|
}, z.core.$loose>;
|
|
214
214
|
role_grant_create: z.ZodObject<{
|
|
215
215
|
role: z.ZodString;
|
|
216
|
-
role_grant_id: z.ZodOptional<z.
|
|
216
|
+
role_grant_id: 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>>>;
|
|
217
217
|
scope_kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
219
|
-
source_offer_id: z.ZodOptional<z.
|
|
218
|
+
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>>>>;
|
|
219
|
+
source_offer_id: 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>>>;
|
|
220
220
|
self_service: z.ZodOptional<z.ZodBoolean>;
|
|
221
221
|
}, z.core.$loose>;
|
|
222
222
|
role_grant_revoke: z.ZodObject<{
|
|
223
223
|
role: z.ZodString;
|
|
224
|
-
role_grant_id: z.
|
|
225
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
224
|
+
role_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>>;
|
|
225
|
+
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>>>>;
|
|
226
226
|
reason: z.ZodOptional<z.ZodString>;
|
|
227
227
|
self_service: z.ZodOptional<z.ZodBoolean>;
|
|
228
228
|
}, z.core.$loose>;
|
|
229
229
|
role_grant_offer_create: z.ZodObject<{
|
|
230
|
-
offer_id: z.ZodOptional<z.
|
|
230
|
+
offer_id: 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>>>;
|
|
231
231
|
role: z.ZodString;
|
|
232
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
233
|
-
to_account_id: z.
|
|
232
|
+
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>>>>;
|
|
233
|
+
to_account_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>>;
|
|
234
234
|
}, z.core.$loose>;
|
|
235
235
|
role_grant_offer_accept: z.ZodObject<{
|
|
236
|
-
offer_id: z.
|
|
237
|
-
role_grant_id: z.ZodOptional<z.
|
|
236
|
+
offer_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>>;
|
|
237
|
+
role_grant_id: 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>>>;
|
|
238
238
|
role: z.ZodString;
|
|
239
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
239
|
+
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>>>>;
|
|
240
240
|
reason: z.ZodOptional<z.ZodString>;
|
|
241
241
|
}, z.core.$loose>;
|
|
242
242
|
role_grant_offer_decline: z.ZodObject<{
|
|
243
|
-
offer_id: z.
|
|
243
|
+
offer_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>>;
|
|
244
244
|
role: z.ZodString;
|
|
245
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
245
|
+
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>>>>;
|
|
246
246
|
reason: z.ZodOptional<z.ZodString>;
|
|
247
247
|
}, z.core.$loose>;
|
|
248
248
|
role_grant_offer_retract: z.ZodObject<{
|
|
249
|
-
offer_id: z.
|
|
249
|
+
offer_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>>;
|
|
250
250
|
role: z.ZodString;
|
|
251
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
251
|
+
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>>>>;
|
|
252
252
|
}, z.core.$loose>;
|
|
253
253
|
role_grant_offer_expire: z.ZodObject<{
|
|
254
|
-
offer_id: z.
|
|
254
|
+
offer_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>>;
|
|
255
255
|
role: z.ZodString;
|
|
256
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
256
|
+
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>>>>;
|
|
257
257
|
}, z.core.$loose>;
|
|
258
258
|
role_grant_offer_supersede: z.ZodObject<{
|
|
259
|
-
offer_id: z.
|
|
259
|
+
offer_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>>;
|
|
260
260
|
role: z.ZodString;
|
|
261
|
-
scope_id: z.ZodOptional<z.ZodNullable<z.
|
|
261
|
+
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>>>>;
|
|
262
262
|
reason: z.ZodEnum<{
|
|
263
263
|
sibling_accepted: "sibling_accepted";
|
|
264
264
|
role_grant_revoked: "role_grant_revoked";
|
|
265
265
|
scope_destroyed: "scope_destroyed";
|
|
266
266
|
account_deleted: "account_deleted";
|
|
267
267
|
}>;
|
|
268
|
-
cause_id: z.
|
|
268
|
+
cause_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>>;
|
|
269
269
|
}, z.core.$loose>;
|
|
270
270
|
invite_create: z.ZodObject<{
|
|
271
|
-
invite_id: z.
|
|
271
|
+
invite_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
|
email: z.ZodNullable<z.ZodString>;
|
|
273
273
|
username: z.ZodNullable<z.ZodString>;
|
|
274
274
|
}, z.core.$loose>;
|
|
275
275
|
invite_delete: z.ZodObject<{
|
|
276
|
-
invite_id: z.
|
|
276
|
+
invite_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>>;
|
|
277
277
|
}, z.core.$loose>;
|
|
278
278
|
account_delete: z.ZodObject<{
|
|
279
279
|
username: z.ZodOptional<z.ZodString>;
|
|
280
280
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
281
|
reason: z.ZodOptional<z.ZodString>;
|
|
282
|
-
attempted_account_id: z.ZodOptional<z.
|
|
282
|
+
attempted_account_id: 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>>>;
|
|
283
283
|
}, z.core.$loose>;
|
|
284
284
|
account_purge: z.ZodObject<{
|
|
285
285
|
username: z.ZodOptional<z.ZodString>;
|
|
286
286
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
287
|
reason: z.ZodOptional<z.ZodString>;
|
|
288
|
-
attempted_account_id: z.ZodOptional<z.
|
|
288
|
+
attempted_account_id: 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>>>;
|
|
289
289
|
}, z.core.$loose>;
|
|
290
290
|
account_undelete: z.ZodObject<{
|
|
291
291
|
username: z.ZodOptional<z.ZodString>;
|
|
292
292
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
293
|
reason: z.ZodOptional<z.ZodString>;
|
|
294
|
-
attempted_account_id: z.ZodOptional<z.
|
|
294
|
+
attempted_account_id: 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>>>;
|
|
295
295
|
}, z.core.$loose>;
|
|
296
296
|
actor_delete: z.ZodObject<{
|
|
297
297
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -486,17 +486,17 @@ export interface AuditLogListOptions {
|
|
|
486
486
|
* write side so `AuditMetadataMap` narrows metadata per event type.
|
|
487
487
|
*/
|
|
488
488
|
export declare const AuditLogEventJson: z.ZodObject<{
|
|
489
|
-
id: z.
|
|
489
|
+
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>>;
|
|
490
490
|
seq: z.ZodNumber;
|
|
491
491
|
event_type: z.ZodString;
|
|
492
492
|
outcome: z.ZodEnum<{
|
|
493
493
|
success: "success";
|
|
494
494
|
failure: "failure";
|
|
495
495
|
}>;
|
|
496
|
-
actor_id: z.ZodNullable<z.
|
|
497
|
-
account_id: z.ZodNullable<z.
|
|
498
|
-
target_account_id: z.ZodNullable<z.
|
|
499
|
-
target_actor_id: z.ZodNullable<z.
|
|
496
|
+
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>>>;
|
|
497
|
+
account_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>>>;
|
|
498
|
+
target_account_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>>>;
|
|
499
|
+
target_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>>>;
|
|
500
500
|
ip: z.ZodNullable<z.ZodString>;
|
|
501
501
|
created_at: z.ZodString;
|
|
502
502
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -504,17 +504,17 @@ export declare const AuditLogEventJson: z.ZodObject<{
|
|
|
504
504
|
export type AuditLogEventJson = z.infer<typeof AuditLogEventJson>;
|
|
505
505
|
/** Zod schema for audit log events with resolved usernames. */
|
|
506
506
|
export declare const AuditLogEventWithUsernamesJson: z.ZodObject<{
|
|
507
|
-
id: z.
|
|
507
|
+
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>>;
|
|
508
508
|
seq: z.ZodNumber;
|
|
509
509
|
event_type: z.ZodString;
|
|
510
510
|
outcome: z.ZodEnum<{
|
|
511
511
|
success: "success";
|
|
512
512
|
failure: "failure";
|
|
513
513
|
}>;
|
|
514
|
-
actor_id: z.ZodNullable<z.
|
|
515
|
-
account_id: z.ZodNullable<z.
|
|
516
|
-
target_account_id: z.ZodNullable<z.
|
|
517
|
-
target_actor_id: z.ZodNullable<z.
|
|
514
|
+
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>>>;
|
|
515
|
+
account_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>>>;
|
|
516
|
+
target_account_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>>>;
|
|
517
|
+
target_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>>>;
|
|
518
518
|
ip: z.ZodNullable<z.ZodString>;
|
|
519
519
|
created_at: z.ZodString;
|
|
520
520
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -524,17 +524,17 @@ export declare const AuditLogEventWithUsernamesJson: z.ZodObject<{
|
|
|
524
524
|
export type AuditLogEventWithUsernamesJson = z.infer<typeof AuditLogEventWithUsernamesJson>;
|
|
525
525
|
/** Zod schema for role_grant history events with resolved usernames. */
|
|
526
526
|
export declare const RoleGrantHistoryEventJson: z.ZodObject<{
|
|
527
|
-
id: z.
|
|
527
|
+
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>>;
|
|
528
528
|
seq: z.ZodNumber;
|
|
529
529
|
event_type: z.ZodString;
|
|
530
530
|
outcome: z.ZodEnum<{
|
|
531
531
|
success: "success";
|
|
532
532
|
failure: "failure";
|
|
533
533
|
}>;
|
|
534
|
-
actor_id: z.ZodNullable<z.
|
|
535
|
-
account_id: z.ZodNullable<z.
|
|
536
|
-
target_account_id: z.ZodNullable<z.
|
|
537
|
-
target_actor_id: z.ZodNullable<z.
|
|
534
|
+
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>>>;
|
|
535
|
+
account_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>>>;
|
|
536
|
+
target_account_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>>>;
|
|
537
|
+
target_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>>>;
|
|
538
538
|
ip: z.ZodNullable<z.ZodString>;
|
|
539
539
|
created_at: z.ZodString;
|
|
540
540
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -545,7 +545,7 @@ export type RoleGrantHistoryEventJson = z.infer<typeof RoleGrantHistoryEventJson
|
|
|
545
545
|
/** Zod schema for admin session listing (session + username, without `is_current`). */
|
|
546
546
|
export declare const AdminSessionJson: z.ZodObject<{
|
|
547
547
|
id: z.core.$ZodBranded<z.ZodString, "SessionId", "out">;
|
|
548
|
-
account_id: z.
|
|
548
|
+
account_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>>;
|
|
549
549
|
created_at: z.ZodString;
|
|
550
550
|
expires_at: z.ZodString;
|
|
551
551
|
username: z.ZodString;
|
|
@@ -64,8 +64,8 @@ import type { AuthGuardResolver } from '../http/route_spec.js';
|
|
|
64
64
|
* (`account: 'none' && actor: 'none'`). The same holder reaches that route
|
|
65
65
|
* by dropping the credential, so the guard reads as a control and enforces
|
|
66
66
|
* nothing — the shape `compile_action_registry` refuses on an `ActionSpec`
|
|
67
|
-
* for the same reason. Extends `RouteAuth`'s leaf invariant
|
|
68
|
-
*
|
|
67
|
+
* for the same reason. Extends `RouteAuth`'s leaf invariant (invariant 4,
|
|
68
|
+
* which `assert_route_auth_invariants` checks for roles and credential types).
|
|
69
69
|
*/
|
|
70
70
|
export declare const fuz_auth_guard_resolver: AuthGuardResolver;
|
|
71
71
|
//# sourceMappingURL=auth_guard_resolver.d.ts.map
|
|
@@ -65,8 +65,8 @@ import { is_public_auth } from '../http/auth_shape.js';
|
|
|
65
65
|
* (`account: 'none' && actor: 'none'`). The same holder reaches that route
|
|
66
66
|
* by dropping the credential, so the guard reads as a control and enforces
|
|
67
67
|
* nothing — the shape `compile_action_registry` refuses on an `ActionSpec`
|
|
68
|
-
* for the same reason. Extends `RouteAuth`'s leaf invariant
|
|
69
|
-
*
|
|
68
|
+
* for the same reason. Extends `RouteAuth`'s leaf invariant (invariant 4,
|
|
69
|
+
* which `assert_route_auth_invariants` checks for roles and credential types).
|
|
70
70
|
*/
|
|
71
71
|
export const fuz_auth_guard_resolver = (auth) => {
|
|
72
72
|
const pre_authorization = [];
|
|
@@ -25,11 +25,11 @@ export type BootstrapInput = z.infer<typeof BootstrapInput>;
|
|
|
25
25
|
export declare const BootstrapOutput: z.ZodObject<{
|
|
26
26
|
ok: z.ZodLiteral<true>;
|
|
27
27
|
account: z.ZodObject<{
|
|
28
|
-
id: z.
|
|
28
|
+
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>>;
|
|
29
29
|
username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
30
30
|
}, z.core.$strict>;
|
|
31
31
|
actor: z.ZodObject<{
|
|
32
|
-
id: z.
|
|
32
|
+
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>>;
|
|
33
33
|
}, z.core.$strict>;
|
|
34
34
|
}, z.core.$strict>;
|
|
35
35
|
export type BootstrapOutput = z.infer<typeof BootstrapOutput>;
|
|
@@ -57,11 +57,11 @@ export declare const bootstrap_route_shape: {
|
|
|
57
57
|
output: z.ZodObject<{
|
|
58
58
|
ok: z.ZodLiteral<true>;
|
|
59
59
|
account: z.ZodObject<{
|
|
60
|
-
id: z.
|
|
60
|
+
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>>;
|
|
61
61
|
username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
62
62
|
}, z.core.$strict>;
|
|
63
63
|
actor: z.ZodObject<{
|
|
64
|
-
id: z.
|
|
64
|
+
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>>;
|
|
65
65
|
}, z.core.$strict>;
|
|
66
66
|
}, z.core.$strict>;
|
|
67
67
|
rate_limit: "ip";
|