@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.
Files changed (131) hide show
  1. package/dist/actions/CLAUDE.md +27 -14
  2. package/dist/actions/action_codegen.d.ts +10 -3
  3. package/dist/actions/action_codegen.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.js +52 -13
  5. package/dist/actions/action_event.d.ts.map +1 -1
  6. package/dist/actions/action_event.js +13 -11
  7. package/dist/actions/action_rpc.d.ts +4 -3
  8. package/dist/actions/action_rpc.d.ts.map +1 -1
  9. package/dist/actions/action_rpc.js +4 -3
  10. package/dist/actions/action_spec.d.ts +102 -206
  11. package/dist/actions/action_spec.d.ts.map +1 -1
  12. package/dist/actions/action_spec.js +18 -96
  13. package/dist/actions/action_types.d.ts +4 -4
  14. package/dist/actions/action_types.d.ts.map +1 -1
  15. package/dist/actions/action_types.js +2 -2
  16. package/dist/actions/broadcast_api.d.ts.map +1 -1
  17. package/dist/actions/broadcast_api.js +6 -5
  18. package/dist/actions/compile_action_registry.d.ts +11 -6
  19. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  20. package/dist/actions/compile_action_registry.js +15 -9
  21. package/dist/actions/perform_action.d.ts +4 -4
  22. package/dist/actions/perform_action.d.ts.map +1 -1
  23. package/dist/actions/perform_action.js +11 -11
  24. package/dist/auth/CLAUDE.md +1 -1
  25. package/dist/auth/account_action_specs.d.ts +50 -23
  26. package/dist/auth/account_action_specs.d.ts.map +1 -1
  27. package/dist/auth/account_action_specs.js +18 -8
  28. package/dist/auth/account_route_schema.d.ts +10 -10
  29. package/dist/auth/account_schema.d.ts +21 -21
  30. package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
  31. package/dist/auth/actor_search_action_specs.d.ts +6 -6
  32. package/dist/auth/admin_action_specs.d.ts +98 -98
  33. package/dist/auth/app_settings_schema.d.ts +2 -2
  34. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  35. package/dist/auth/audit_log_schema.d.ts +44 -44
  36. package/dist/auth/auth_guard_resolver.d.ts +2 -2
  37. package/dist/auth/auth_guard_resolver.js +2 -2
  38. package/dist/auth/bootstrap_route_schema.d.ts +4 -4
  39. package/dist/auth/cell_action_specs.d.ts +241 -241
  40. package/dist/auth/cell_actions.js +3 -3
  41. package/dist/auth/cell_audit_action_specs.d.ts +14 -14
  42. package/dist/auth/cell_audit_metadata.d.ts +6 -6
  43. package/dist/auth/cell_field_action_specs.d.ts +38 -38
  44. package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
  45. package/dist/auth/cell_grant_action_specs.d.ts +61 -61
  46. package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
  47. package/dist/auth/cell_item_action_specs.d.ts +50 -50
  48. package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
  49. package/dist/auth/invite_schema.d.ts +6 -6
  50. package/dist/auth/role_grant_offer_action_specs.d.ts +120 -120
  51. package/dist/auth/role_grant_offer_notifications.d.ts +66 -66
  52. package/dist/auth/role_grant_offer_schema.d.ts +6 -6
  53. package/dist/auth/self_service_role_action_specs.d.ts +2 -2
  54. package/dist/auth/signup_route_schema.d.ts +2 -2
  55. package/dist/http/CLAUDE.md +9 -8
  56. package/dist/http/auth_shape.d.ts +54 -17
  57. package/dist/http/auth_shape.d.ts.map +1 -1
  58. package/dist/http/auth_shape.js +104 -52
  59. package/dist/http/error_schemas.d.ts +6 -4
  60. package/dist/http/error_schemas.d.ts.map +1 -1
  61. package/dist/http/error_schemas.js +4 -9
  62. package/dist/http/jsonrpc_errors.d.ts +11 -4
  63. package/dist/http/jsonrpc_errors.d.ts.map +1 -1
  64. package/dist/http/jsonrpc_errors.js +11 -4
  65. package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
  66. package/dist/http/jsonrpc_helpers.js +2 -1
  67. package/dist/http/route_spec.d.ts +3 -2
  68. package/dist/http/route_spec.d.ts.map +1 -1
  69. package/dist/http/route_spec.js +20 -8
  70. package/dist/http/schema_helpers.d.ts +24 -20
  71. package/dist/http/schema_helpers.d.ts.map +1 -1
  72. package/dist/http/schema_helpers.js +24 -19
  73. package/dist/primitive_schemas.d.ts +10 -3
  74. package/dist/primitive_schemas.d.ts.map +1 -1
  75. package/dist/primitive_schemas.js +10 -2
  76. package/dist/primitive_schemas_fuz.d.ts +69 -0
  77. package/dist/primitive_schemas_fuz.d.ts.map +1 -0
  78. package/dist/primitive_schemas_fuz.js +49 -0
  79. package/dist/realtime/sse.d.ts +3 -3
  80. package/dist/realtime/sse.d.ts.map +1 -1
  81. package/dist/realtime/sse.js +4 -4
  82. package/dist/schema_issues.d.ts +91 -4
  83. package/dist/schema_issues.d.ts.map +1 -1
  84. package/dist/schema_issues.js +262 -1
  85. package/dist/schema_meta.d.ts +24 -8
  86. package/dist/schema_meta.d.ts.map +1 -1
  87. package/dist/schema_meta.js +31 -10
  88. package/dist/server/serve_fact_route.d.ts.map +1 -1
  89. package/dist/server/serve_fact_route.js +2 -1
  90. package/dist/testing/CLAUDE.md +17 -11
  91. package/dist/testing/adversarial_input_cases.d.ts +18 -23
  92. package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
  93. package/dist/testing/adversarial_input_cases.js +51 -46
  94. package/dist/testing/cross_backend/action_manifest.d.ts +2 -1
  95. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  96. package/dist/testing/cross_backend/action_manifest.js +3 -3
  97. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
  98. package/dist/testing/cross_backend/cell_crud.js +3 -8
  99. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  100. package/dist/testing/cross_backend/conformance_table.js +5 -4
  101. package/dist/testing/cross_backend/cross_rpc.d.ts +4 -2
  102. package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
  103. package/dist/testing/cross_backend/cross_rpc.js +6 -4
  104. package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
  105. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  106. package/dist/testing/cross_backend/sse_round_trip.js +3 -2
  107. package/dist/testing/cross_backend/testing_reset_actions.d.ts +8 -8
  108. package/dist/testing/integration_helpers.d.ts.map +1 -1
  109. package/dist/testing/integration_helpers.js +4 -3
  110. package/dist/testing/rpc_envelope_cases.d.ts +3 -3
  111. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  112. package/dist/testing/rpc_envelope_cases.js +1 -1
  113. package/dist/testing/rpc_helpers.d.ts +12 -8
  114. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  115. package/dist/testing/rpc_helpers.js +18 -15
  116. package/dist/testing/schema_generators.d.ts +75 -40
  117. package/dist/testing/schema_generators.d.ts.map +1 -1
  118. package/dist/testing/schema_generators.js +273 -99
  119. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  120. package/dist/testing/sse_round_trip.js +4 -3
  121. package/dist/ui/admin_accounts_state.svelte.d.ts +10 -10
  122. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  123. package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
  124. package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
  125. package/dist/ui/admin_sessions_state.svelte.d.ts +2 -2
  126. package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
  127. package/dist/ui/role_grant_offers_state.svelte.d.ts +6 -6
  128. package/dist/zod.d.ts +23 -5
  129. package/dist/zod.d.ts.map +1 -1
  130. package/dist/zod.js +2 -2
  131. 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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
219
- source_offer_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
225
- scope_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
233
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
237
- role_grant_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
497
- account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
498
- target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
499
- target_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
515
- account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
516
- target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
517
- target_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
535
- account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
536
- target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
537
- target_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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, which the
68
- * route pipeline never parses.
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, which the
69
- * route pipeline never parses.
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
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";