@fuzdev/fuz_app 0.155.1 → 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
@@ -59,13 +59,13 @@ export declare const ROLE_GRANT_REVOKE_NOTIFICATION_METHOD = "role_grant_revoke"
59
59
  /** Params for `role_grant_offer_received` — offer delivered to its recipient. */
60
60
  export declare const RoleGrantOfferReceivedParams: z.ZodObject<{
61
61
  offer: z.ZodObject<{
62
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
63
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
64
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
65
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
62
+ 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
+ from_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>>;
64
+ 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>>;
65
+ to_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>>>;
66
66
  role: z.ZodString;
67
67
  scope_kind: z.ZodNullable<z.ZodString>;
68
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
68
+ 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>>>;
69
69
  message: z.ZodNullable<z.ZodString>;
70
70
  created_at: z.ZodString;
71
71
  expires_at: z.ZodString;
@@ -74,20 +74,20 @@ export declare const RoleGrantOfferReceivedParams: z.ZodObject<{
74
74
  decline_reason: z.ZodNullable<z.ZodString>;
75
75
  retracted_at: z.ZodNullable<z.ZodString>;
76
76
  superseded_at: z.ZodNullable<z.ZodString>;
77
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
77
+ resulting_role_grant_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
  }, z.core.$strict>;
79
79
  }, z.core.$strict>;
80
80
  export type RoleGrantOfferReceivedParams = z.infer<typeof RoleGrantOfferReceivedParams>;
81
81
  /** Params for `role_grant_offer_retracted` — grantor-side retraction. */
82
82
  export declare const RoleGrantOfferRetractedParams: z.ZodObject<{
83
83
  offer: z.ZodObject<{
84
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
85
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
86
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
87
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
84
+ 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>>;
85
+ from_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>>;
86
+ 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>>;
87
+ to_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>>>;
88
88
  role: z.ZodString;
89
89
  scope_kind: z.ZodNullable<z.ZodString>;
90
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
90
+ 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>>>;
91
91
  message: z.ZodNullable<z.ZodString>;
92
92
  created_at: z.ZodString;
93
93
  expires_at: z.ZodString;
@@ -96,20 +96,20 @@ export declare const RoleGrantOfferRetractedParams: z.ZodObject<{
96
96
  decline_reason: z.ZodNullable<z.ZodString>;
97
97
  retracted_at: z.ZodNullable<z.ZodString>;
98
98
  superseded_at: z.ZodNullable<z.ZodString>;
99
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
99
+ resulting_role_grant_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>>>;
100
100
  }, z.core.$strict>;
101
101
  }, z.core.$strict>;
102
102
  export type RoleGrantOfferRetractedParams = z.infer<typeof RoleGrantOfferRetractedParams>;
103
103
  /** Params for `role_grant_offer_accepted` — recipient accepted the offer. */
104
104
  export declare const RoleGrantOfferAcceptedParams: z.ZodObject<{
105
105
  offer: z.ZodObject<{
106
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
107
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
108
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
109
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
106
+ 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>>;
107
+ from_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>>;
108
+ 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>>;
109
+ to_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>>>;
110
110
  role: z.ZodString;
111
111
  scope_kind: z.ZodNullable<z.ZodString>;
112
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
112
+ 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>>>;
113
113
  message: z.ZodNullable<z.ZodString>;
114
114
  created_at: z.ZodString;
115
115
  expires_at: z.ZodString;
@@ -118,7 +118,7 @@ export declare const RoleGrantOfferAcceptedParams: z.ZodObject<{
118
118
  decline_reason: z.ZodNullable<z.ZodString>;
119
119
  retracted_at: z.ZodNullable<z.ZodString>;
120
120
  superseded_at: z.ZodNullable<z.ZodString>;
121
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
121
+ resulting_role_grant_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>>>;
122
122
  }, z.core.$strict>;
123
123
  }, z.core.$strict>;
124
124
  export type RoleGrantOfferAcceptedParams = z.infer<typeof RoleGrantOfferAcceptedParams>;
@@ -129,13 +129,13 @@ export type RoleGrantOfferAcceptedParams = z.infer<typeof RoleGrantOfferAccepted
129
129
  */
130
130
  export declare const RoleGrantOfferDeclinedParams: z.ZodObject<{
131
131
  offer: z.ZodObject<{
132
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
133
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
134
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
135
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
132
+ 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>>;
133
+ from_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>>;
134
+ 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>>;
135
+ to_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>>>;
136
136
  role: z.ZodString;
137
137
  scope_kind: z.ZodNullable<z.ZodString>;
138
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
138
+ 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>>>;
139
139
  message: z.ZodNullable<z.ZodString>;
140
140
  created_at: z.ZodString;
141
141
  expires_at: z.ZodString;
@@ -144,7 +144,7 @@ export declare const RoleGrantOfferDeclinedParams: z.ZodObject<{
144
144
  decline_reason: z.ZodNullable<z.ZodString>;
145
145
  retracted_at: z.ZodNullable<z.ZodString>;
146
146
  superseded_at: z.ZodNullable<z.ZodString>;
147
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
147
+ resulting_role_grant_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>>>;
148
148
  }, z.core.$strict>;
149
149
  }, z.core.$strict>;
150
150
  export type RoleGrantOfferDeclinedParams = z.infer<typeof RoleGrantOfferDeclinedParams>;
@@ -160,13 +160,13 @@ export type RoleGrantOfferDeclinedParams = z.infer<typeof RoleGrantOfferDeclined
160
160
  */
161
161
  export declare const RoleGrantOfferSupersedeParams: z.ZodObject<{
162
162
  offer: z.ZodObject<{
163
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
164
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
165
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
166
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
163
+ 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>>;
164
+ from_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>>;
165
+ 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>>;
166
+ to_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>>>;
167
167
  role: z.ZodString;
168
168
  scope_kind: z.ZodNullable<z.ZodString>;
169
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
169
+ 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>>>;
170
170
  message: z.ZodNullable<z.ZodString>;
171
171
  created_at: z.ZodString;
172
172
  expires_at: z.ZodString;
@@ -175,14 +175,14 @@ export declare const RoleGrantOfferSupersedeParams: z.ZodObject<{
175
175
  decline_reason: z.ZodNullable<z.ZodString>;
176
176
  retracted_at: z.ZodNullable<z.ZodString>;
177
177
  superseded_at: z.ZodNullable<z.ZodString>;
178
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
178
+ resulting_role_grant_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>>>;
179
179
  }, z.core.$strict>;
180
180
  reason: z.ZodEnum<{
181
181
  sibling_accepted: "sibling_accepted";
182
182
  role_grant_revoked: "role_grant_revoked";
183
183
  scope_destroyed: "scope_destroyed";
184
184
  }>;
185
- cause_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
185
+ 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>>;
186
186
  }, z.core.$strict>;
187
187
  export type RoleGrantOfferSupersedeParams = z.infer<typeof RoleGrantOfferSupersedeParams>;
188
188
  /**
@@ -193,9 +193,9 @@ export type RoleGrantOfferSupersedeParams = z.infer<typeof RoleGrantOfferSuperse
193
193
  * target.
194
194
  */
195
195
  export declare const RoleGrantRevokeParams: z.ZodObject<{
196
- role_grant_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
196
+ 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>>;
197
197
  role: z.ZodString;
198
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
198
+ 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>>>;
199
199
  reason: z.ZodNullable<z.ZodString>;
200
200
  }, z.core.$strict>;
201
201
  export type RoleGrantRevokeParams = z.infer<typeof RoleGrantRevokeParams>;
@@ -207,13 +207,13 @@ export declare const role_grant_offer_received_notification_spec: {
207
207
  side_effects: true;
208
208
  input: z.ZodObject<{
209
209
  offer: z.ZodObject<{
210
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
211
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
212
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
213
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
210
+ 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>>;
211
+ from_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>>;
212
+ 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>>;
213
+ to_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>>>;
214
214
  role: z.ZodString;
215
215
  scope_kind: z.ZodNullable<z.ZodString>;
216
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
216
+ 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>>>;
217
217
  message: z.ZodNullable<z.ZodString>;
218
218
  created_at: z.ZodString;
219
219
  expires_at: z.ZodString;
@@ -222,7 +222,7 @@ export declare const role_grant_offer_received_notification_spec: {
222
222
  decline_reason: z.ZodNullable<z.ZodString>;
223
223
  retracted_at: z.ZodNullable<z.ZodString>;
224
224
  superseded_at: z.ZodNullable<z.ZodString>;
225
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
225
+ resulting_role_grant_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>>>;
226
226
  }, z.core.$strict>;
227
227
  }, z.core.$strict>;
228
228
  output: z.ZodVoid;
@@ -237,13 +237,13 @@ export declare const role_grant_offer_retracted_notification_spec: {
237
237
  side_effects: true;
238
238
  input: z.ZodObject<{
239
239
  offer: z.ZodObject<{
240
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
241
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
242
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
243
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
240
+ 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>>;
241
+ from_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>>;
242
+ 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>>;
243
+ to_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.ZodString;
245
245
  scope_kind: z.ZodNullable<z.ZodString>;
246
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
246
+ 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>>>;
247
247
  message: z.ZodNullable<z.ZodString>;
248
248
  created_at: z.ZodString;
249
249
  expires_at: z.ZodString;
@@ -252,7 +252,7 @@ export declare const role_grant_offer_retracted_notification_spec: {
252
252
  decline_reason: z.ZodNullable<z.ZodString>;
253
253
  retracted_at: z.ZodNullable<z.ZodString>;
254
254
  superseded_at: z.ZodNullable<z.ZodString>;
255
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
255
+ resulting_role_grant_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>>>;
256
256
  }, z.core.$strict>;
257
257
  }, z.core.$strict>;
258
258
  output: z.ZodVoid;
@@ -267,13 +267,13 @@ export declare const role_grant_offer_accepted_notification_spec: {
267
267
  side_effects: true;
268
268
  input: z.ZodObject<{
269
269
  offer: z.ZodObject<{
270
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
271
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
272
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
273
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
270
+ 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>>;
271
+ from_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
+ 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>>;
273
+ to_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>>>;
274
274
  role: z.ZodString;
275
275
  scope_kind: z.ZodNullable<z.ZodString>;
276
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
276
+ 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>>>;
277
277
  message: z.ZodNullable<z.ZodString>;
278
278
  created_at: z.ZodString;
279
279
  expires_at: z.ZodString;
@@ -282,7 +282,7 @@ export declare const role_grant_offer_accepted_notification_spec: {
282
282
  decline_reason: z.ZodNullable<z.ZodString>;
283
283
  retracted_at: z.ZodNullable<z.ZodString>;
284
284
  superseded_at: z.ZodNullable<z.ZodString>;
285
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
285
+ resulting_role_grant_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>>>;
286
286
  }, z.core.$strict>;
287
287
  }, z.core.$strict>;
288
288
  output: z.ZodVoid;
@@ -297,13 +297,13 @@ export declare const role_grant_offer_declined_notification_spec: {
297
297
  side_effects: true;
298
298
  input: z.ZodObject<{
299
299
  offer: z.ZodObject<{
300
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
301
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
302
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
303
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
300
+ 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>>;
301
+ from_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>>;
302
+ 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>>;
303
+ to_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>>>;
304
304
  role: z.ZodString;
305
305
  scope_kind: z.ZodNullable<z.ZodString>;
306
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
306
+ 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>>>;
307
307
  message: z.ZodNullable<z.ZodString>;
308
308
  created_at: z.ZodString;
309
309
  expires_at: z.ZodString;
@@ -312,7 +312,7 @@ export declare const role_grant_offer_declined_notification_spec: {
312
312
  decline_reason: z.ZodNullable<z.ZodString>;
313
313
  retracted_at: z.ZodNullable<z.ZodString>;
314
314
  superseded_at: z.ZodNullable<z.ZodString>;
315
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
315
+ resulting_role_grant_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>>>;
316
316
  }, z.core.$strict>;
317
317
  }, z.core.$strict>;
318
318
  output: z.ZodVoid;
@@ -327,13 +327,13 @@ export declare const role_grant_offer_supersede_notification_spec: {
327
327
  side_effects: true;
328
328
  input: z.ZodObject<{
329
329
  offer: z.ZodObject<{
330
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
331
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
332
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
333
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
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
+ from_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>>;
332
+ 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>>;
333
+ to_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>>>;
334
334
  role: z.ZodString;
335
335
  scope_kind: z.ZodNullable<z.ZodString>;
336
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
336
+ 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>>>;
337
337
  message: z.ZodNullable<z.ZodString>;
338
338
  created_at: z.ZodString;
339
339
  expires_at: z.ZodString;
@@ -342,14 +342,14 @@ export declare const role_grant_offer_supersede_notification_spec: {
342
342
  decline_reason: z.ZodNullable<z.ZodString>;
343
343
  retracted_at: z.ZodNullable<z.ZodString>;
344
344
  superseded_at: z.ZodNullable<z.ZodString>;
345
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
345
+ resulting_role_grant_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>>>;
346
346
  }, z.core.$strict>;
347
347
  reason: z.ZodEnum<{
348
348
  sibling_accepted: "sibling_accepted";
349
349
  role_grant_revoked: "role_grant_revoked";
350
350
  scope_destroyed: "scope_destroyed";
351
351
  }>;
352
- cause_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
352
+ 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>>;
353
353
  }, z.core.$strict>;
354
354
  output: z.ZodVoid;
355
355
  async: true;
@@ -362,9 +362,9 @@ export declare const role_grant_revoke_notification_spec: {
362
362
  auth: null;
363
363
  side_effects: true;
364
364
  input: z.ZodObject<{
365
- role_grant_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
365
+ 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>>;
366
366
  role: z.ZodString;
367
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
367
+ 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>>>;
368
368
  reason: z.ZodNullable<z.ZodString>;
369
369
  }, z.core.$strict>;
370
370
  output: z.ZodVoid;
@@ -111,13 +111,13 @@ export interface CreateRoleGrantOfferInput {
111
111
  }
112
112
  /** Zod schema for client-safe role_grant offer data. */
113
113
  export declare const RoleGrantOfferJson: z.ZodObject<{
114
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
115
- from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
116
- to_account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
117
- to_actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
114
+ 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>>;
115
+ from_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>>;
116
+ 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>>;
117
+ to_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>>>;
118
118
  role: z.ZodString;
119
119
  scope_kind: z.ZodNullable<z.ZodString>;
120
- scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
120
+ 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>>>;
121
121
  message: z.ZodNullable<z.ZodString>;
122
122
  created_at: z.ZodString;
123
123
  expires_at: z.ZodString;
@@ -126,7 +126,7 @@ export declare const RoleGrantOfferJson: z.ZodObject<{
126
126
  decline_reason: z.ZodNullable<z.ZodString>;
127
127
  retracted_at: z.ZodNullable<z.ZodString>;
128
128
  superseded_at: z.ZodNullable<z.ZodString>;
129
- resulting_role_grant_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
129
+ resulting_role_grant_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>>>;
130
130
  }, z.core.$strict>;
131
131
  export type RoleGrantOfferJson = z.infer<typeof RoleGrantOfferJson>;
132
132
  /** Convert a `RoleGrantOffer` row to its JSON payload shape. */
@@ -15,7 +15,7 @@ export declare const ERROR_ROLE_NOT_SELF_SERVICE_ELIGIBLE: "role_not_self_servic
15
15
  export declare const SelfServiceRoleSetInput: z.ZodObject<{
16
16
  role: z.ZodString;
17
17
  enabled: z.ZodBoolean;
18
- acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
18
+ 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>>>;
19
19
  }, z.core.$strict>;
20
20
  export type SelfServiceRoleSetInput = z.infer<typeof SelfServiceRoleSetInput>;
21
21
  /**
@@ -55,7 +55,7 @@ export declare const self_service_role_set_action_spec: {
55
55
  input: z.ZodObject<{
56
56
  role: z.ZodString;
57
57
  enabled: z.ZodBoolean;
58
- acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
58
+ 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>>>;
59
59
  }, z.core.$strict>;
60
60
  output: z.ZodObject<{
61
61
  ok: z.ZodLiteral<true>;
@@ -30,11 +30,11 @@ export type SignupInput = z.infer<typeof SignupInput>;
30
30
  export declare const SignupOutput: z.ZodObject<{
31
31
  ok: z.ZodLiteral<true>;
32
32
  account: z.ZodObject<{
33
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
33
+ 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>>;
34
34
  username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
35
35
  }, z.core.$strict>;
36
36
  actor: z.ZodObject<{
37
- id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
37
+ 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
  }, z.core.$strict>;
39
39
  }, z.core.$strict>;
40
40
  export type SignupOutput = z.infer<typeof SignupOutput>;
@@ -15,7 +15,7 @@ effects, see ../../../docs/architecture.md.
15
15
  ## Module Map
16
16
 
17
17
  - `http/route_spec.ts` — `RouteSpec` + `apply_route_specs`, validation pipeline, transactions.
18
- - `http/auth_shape.ts` — canonical `RouteAuth` Zod schema + cross-axis invariants + predicates.
18
+ - `http/auth_shape.ts` — canonical `RouteAuth` Zod schema + predicates + the registration-time checks: `assert_route_auth_invariants` (the cross-axis invariants 1, 3, 4) and `assert_route_auth_acting_biconditional` (invariant 2), both run by `apply_route_specs` and `compile_action_registry` on every spec.
19
19
  - `http/error_schemas.ts` — `ERROR_*` constants, standard error shapes, `derive_error_schemas`.
20
20
  - `http/schema_helpers.ts` — shared Zod introspection (null/void/strict/surface/merge/middleware-applies) + `to_void_params` / `to_input_params` / `json_has_own_proto_key` / `safe_parse_dropping_unknown_keys`.
21
21
  - `http/middleware_spec.ts` — `MiddlewareSpec` interface.
@@ -99,12 +99,12 @@ wrapper). See `auth/signup_routes.ts`.
99
99
 
100
100
  `apply_route_specs` assembles the following middleware chain per spec:
101
101
 
102
- 1. **Params validation** — `spec.params` → `validated_params` context var; mismatch returns 400 `ERROR_INVALID_ROUTE_PARAMS` with Zod `issues`
102
+ 1. **Params validation** — `spec.params` → `validated_params` context var; mismatch returns 400 `ERROR_INVALID_ROUTE_PARAMS` with `issues`
103
103
  2. **Query validation** — `spec.query` → `validated_query`; mismatch returns 400 `ERROR_INVALID_QUERY_PARAMS`
104
104
  3. **Pre-authorization auth guards** — every gate that reads only what the auth middleware set, in coarse-to-fine order: `require_auth` (401 `ERROR_AUTHENTICATION_REQUIRED`) when `auth.account === 'required'` or `auth.actor === 'required'`; `require_credential_types(types)` (403 `ERROR_CREDENTIAL_TYPE_REQUIRED` with `required_credential_types: ReadonlyArray<string>`) when `auth.credential_types?.length`; `require_token_scope(capability)` (403 `ERROR_TOKEN_SCOPE_REQUIRED` with `required_scope`, the token-scope refusal) when `auth.required_scope` names a capability. All fire before any body parsing — so a caller they refuse never sees route-shape information from input parse failures — and before actor resolution, so a wrong channel costs no DB work and never learns account state (e.g. that the account is multi-actor). The `AuthGuardResolver` (e.g. `fuz_auth_guard_resolver` from `auth/auth_guard_resolver.ts`) returns this set as `pre_authorization: Array<MiddlewareHandler>`.
105
105
  4. **Authorization phase** — when `spec.auth.actor !== 'none'`, resolves the acting actor against the resolved credential's account (`get_resolved_auth`, set by the auth middleware) plus the `acting` selector (`validated_query.acting` on GETs; read off the raw body on mutations, since body validation now runs after the gates), builds `RequestContext` via `build_request_context`, and sets `REQUEST_CONTEXT_KEY`. When `auth.account !== 'none' && auth.actor === 'none'`, an account-only context is built. Resolution failures return 400 `ERROR_ACTOR_REQUIRED` (with `available[]`) or `ERROR_ACTOR_NOT_ON_ACCOUNT` (or 500 `ERROR_NO_ACTORS_ON_ACCOUNT` on signup-invariant violation, 500 `ERROR_ACCOUNT_VANISHED` on torn account/actor reads after a successful resolve). Public routes (`account: 'none' && actor: 'none'`) skip this phase entirely.
106
106
  5. **Post-authorization auth guards** — `require_role(roles)` (403 `ERROR_INSUFFICIENT_PERMISSIONS` with `required_roles: ReadonlyArray<string>`) when `auth.roles?.length`. The only gate in this phase, because it is the only one that reads `REQUEST_CONTEXT_KEY` (populated by step 4) rather than the auth middleware's own context vars. Multi-role specs admit any-of via `has_any_scoped_role(ctx, roles, null)`.
107
- 6. **Input validation** — JSON body parsed + validated; mismatch returns 400 `ERROR_INVALID_JSON_BODY` (not JSON) or `ERROR_INVALID_REQUEST_BODY` (schema failure with `issues`). Skipped on GET and `z.null()` inputs. The validated input lands on `c.var.validated_input`.
107
+ 6. **Input validation** — JSON body parsed + validated; mismatch returns 400 `ERROR_INVALID_JSON_BODY` (not JSON) or `ERROR_INVALID_REQUEST_BODY` (schema failure with `issues`). Every schema refusal's `issues` are `WireIssue`s (`to_wire_issues`, `schema_issues.ts`), sent under DEV only (`dev_only`). Skipped on GET and `z.null()` inputs. The validated input lands on `c.var.validated_input`.
108
108
  7. **Handler** — wrapped in transaction when `use_transaction` (see above), receives `RouteContext`
109
109
  8. **Error catch** — catches a thrown JSON-RPC error (`ThrownJsonrpcError`, recognized by brand through `to_thrown_jsonrpc_error`, so one from a second fuz_app copy maps too; a foreign error class carrying a JSON-RPC `code` falls to the generic path) → maps to HTTP status + the flat REST `ApiError` body (`{error: <reason>, message?, ...rest_data}`); catches generic `Error` → 500 `{error: 'internal_error', message?}` (message only in DEV). The reason string comes from `err.data.reason` when set (consumer-supplied canonical reason override) or from `jsonrpc_error_code_to_name(err.code)` (e.g. `-32003 → 'not_found'`). The flat shape matches what middleware and direct handlers emit — REST callers see one envelope across every emit site, while the JSON-RPC dispatcher keeps its own `{jsonrpc, id, error: {code, message, data}}` envelope on the RPC mount.
110
110
  9. **DEV-only output + error validation** — wraps the error catch (see below), so a body built from a thrown error is validated like a returned one
@@ -199,8 +199,9 @@ documents the framework's own emissions; consumers tighten via
199
199
 
200
200
  The same auto-derivation pattern is **not** appropriate for
201
201
  consumer-authored inputs (or handler outputs). A consumer's spec declares
202
- the exact `acting?: ActingActor` slot, and the framework reads it back via
203
- reference-equality to drive the authorization phase — auto-extending
202
+ the exact `acting?: ActingActor` slot (the Zod one, or its fuz_schema twin
203
+ in `primitive_schemas_fuz.ts` for a fuz_schema input), and the framework
204
+ reads it back via reference-equality to drive the authorization phase — auto-extending
204
205
  schemas at registration time would obscure the source of truth ("did the
205
206
  spec declare this, or did the framework graft it on?") and quietly shadow
206
207
  consumer fields named `acting` that aren't the canonical `ActingActor`.
@@ -234,9 +235,9 @@ only imports and re-uses them for generation logic.
234
235
  Key helpers:
235
236
 
236
237
  - `is_null_schema(schema)` — `instanceof z.ZodNull`, or a fuz_schema `literal(null)` (a kind check, not parse-null, to avoid false positives from `z.nullable(z.string())`)
237
- - `is_void_schema(schema)` — `instanceof z.ZodVoid`; a `z.void()` input declares a parameterless RPC method (false for any fuz_schema schema, which has no void kind)
238
- - `to_void_params(raw_params)` — reads absent, `null`, and `{}` params of a `z.void()` input as the no-arg call (`undefined`), passing any other shape through for `z.void()` to refuse — the twin of the Rust spine's `require_void_params`
239
- - `to_input_params(input, raw_params)` — the one params normalizer every receiving end runs before the input parse (`parse_any`): `to_void_params` for a `z.void()` input, else absent/`null` → `{}`; used by both the server dispatch core (`perform_action`) and the peer receive path (`ActionDispatcher`)
238
+ - `is_void_schema(schema)` — `instanceof z.ZodVoid`, or a fuz_schema `literal(undefined)` (what `s.void` is, a `meta` copy included; a kind check like `is_null_schema`, so neither `z.undefined()` nor an optional schema is void); a void input declares a parameterless RPC method
239
+ - `to_void_params(raw_params)` — reads absent, `null`, and `{}` params of a void input as the no-arg call (`undefined`), passing any other shape through for the void schema to refuse — the twin of the Rust spine's `require_void_params`
240
+ - `to_input_params(input, raw_params)` — the one params normalizer every receiving end runs before the input parse (`parse_any`), Zod or fuz_schema: `to_void_params` for a void input, else absent/`null` → `{}`; used by both the server dispatch core (`perform_action`) and the peer receive path (`ActionDispatcher`)
240
241
  - `json_has_own_proto_key(value)` — whether any object in a parsed JSON value has an own `__proto__` key, by an iterative walk (no recursion — `JSON.parse` nests deeper than the call stack); the dispatcher refuses such params with `ERROR_PARAMS_PROTO_KEY`. Twin of the Rust `fuz_http::json_has_own_proto_key`
241
242
  - `safe_parse_dropping_unknown_keys(schema, value)` — the forward-compatible read of a remote-authored payload, Zod or fuz_schema, returning `parse_any`'s `{ok, value}` / `{ok: false, issues}`: while every issue is an unknown key (`unknown_key_targets`), strips them from a copy and reparses — after the first parse that reports unknown keys, one schema-guided pass deletes every key a strict fuz_schema `object` doesn't name anywhere the schema reaches (entries, array items, record values, the `variant` option), as a fuz_schema parse reports at most a hundred issues; a key under a fuz_schema `union` is never stripped (the union fails as one issue of its own), and a later `pipe` stage is stripped only as reported — until nothing is left to strip, capped at `UNKNOWN_KEY_PASSES_MAX` passes (the last failure returned past it); any other issue still fails. A Zod union of strict objects reports the key and is stripped, a fuz_schema `union` reports one issue of its own and is not. Used for response `result`s (`ActionEvent`) and peer replies (`peer/ping`); matches serde's ignore-unknown-fields default on the Rust spine
242
243
  - `is_strict_object_schema(schema)` — detects `z.strictObject()` by checking `schema.def.catchall instanceof z.ZodNever`, or a fuz_schema `object` (not `strip_object` / `loose_object`); a fuz_schema `pipe` is read through to its first schema when no stage is a `transform` (so a refined `object` reads strict), while any Zod `ZodPipe` — even `O.pipe(O)` with no transform — reads not strict
@@ -20,18 +20,21 @@
20
20
  * `actions → http` dependency direction (and `http/error_schemas.ts` /
21
21
  * `http/surface.ts` consume the type).
22
22
  *
23
- * Registry-time invariants 1, 3, and 4 live on the schema's
24
- * `.superRefine` so any spec that fails them throws at the Zod parse
25
- * boundary. Invariant 2 (the `actor !== 'none' ⟺ input or query
26
- * declares acting?: ActingActor` biconditional) needs introspection of
27
- * the spec's input/query schemas, so it is enforced at registration
28
- * time inside the dispatcher loops (`apply_route_specs`,
29
- * `create_rpc_endpoint`, `register_action_ws`) via the
30
- * `assert_route_auth_acting_biconditional` helper exported below.
23
+ * Every registry-time invariant is enforced at registration, inside the
24
+ * dispatcher loops every spec passes (`apply_route_specs` for route specs,
25
+ * `compile_action_registry` for `create_rpc_endpoint` and
26
+ * `register_action_ws`): the cross-axis invariants 1, 3, and 4 by
27
+ * `assert_route_auth_invariants`, which reads the auth shape alone, and
28
+ * invariant 2 (the `actor !== 'none' ⟺ input or query declares
29
+ * acting?: ActingActor` biconditional), which introspects the spec's
30
+ * input/query schemas, by `assert_route_auth_acting_biconditional`. Specs
31
+ * are plain objects that no registration path parses, so neither check
32
+ * can live only on a schema.
31
33
  *
32
34
  * @module
33
35
  */
34
36
  import { z } from 'zod';
37
+ import type { ValidationSchema } from '../schema_issues.js';
35
38
  /**
36
39
  * `acting` field shared by every input that needs the caller's acting actor.
37
40
  * Declaring `acting: ActingActor` on a route or action input signals to the
@@ -51,8 +54,11 @@ import { z } from 'zod';
51
54
  * invariant 2: `auth.actor !== 'none'` ⟺ input (or query, on REST GETs)
52
55
  * declares `acting?: ActingActor`. Keeping the contract in one module
53
56
  * removes the http/ → auth/ import that an earlier split forced.
57
+ *
58
+ * A fuz_schema input declares the twin in `primitive_schemas_fuz.ts`, which
59
+ * the dispatcher finds the same way.
54
60
  */
55
- export declare const ActingActor: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
61
+ export declare const ActingActor: z.ZodOptional<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string>>>;
56
62
  export type ActingActor = z.infer<typeof ActingActor>;
57
63
  /**
58
64
  * Read an `acting` selector out of an unvalidated value.
@@ -74,6 +80,15 @@ export type ActingActor = z.infer<typeof ActingActor>;
74
80
  * an input schema behind it, so there a malformed selector is final (the
75
81
  * status route answers account-only).
76
82
  *
83
+ * The grammar is the fuz_schema twin's, so the uppercase max UUID reads as a
84
+ * selector, as on the Rust spine; naming no actor, it is refused by the
85
+ * authorization phase before a Zod input schema would see it. Every other
86
+ * value reads as the Zod `ActingActor` would. The id comes back lowercased.
87
+ * A route declaring `acting` on its Zod `query` schema doesn't read it here:
88
+ * that schema runs ahead of the authorization phase and refuses the uppercase
89
+ * max with a 400, a declared gap against the Rust spine until those query
90
+ * schemas move to the twin.
91
+ *
77
92
  * @param value - the raw `acting` field, from params / query / body
78
93
  * @returns the actor id, or `undefined` when absent or malformed
79
94
  */
@@ -102,7 +117,9 @@ export type AuthAxisState = z.infer<typeof AuthAxisState>;
102
117
  * The canonical auth shape used by both `ActionSpec.auth` and
103
118
  * `RouteSpec.auth`.
104
119
  *
105
- * Cross-axis registry invariants enforced via `.superRefine`:
120
+ * Cross-axis registry invariants, checked at registration by
121
+ * `assert_route_auth_invariants` (and by this schema's `.superRefine`, the
122
+ * same check, when a caller parses an auth shape):
106
123
  *
107
124
  * 1. **Roles imply actor.** `roles?.length` ⟹ `actor === 'required'`.
108
125
  * Role checks read the actor's role_grants, so a role-gated spec without
@@ -114,8 +131,7 @@ export type AuthAxisState = z.infer<typeof AuthAxisState>;
114
131
  * ⟹ no `roles`, no `credential_types` (nothing left to gate). The same
115
132
  * rule covers `required_scope`, but enforcing it needs the capability
116
133
  * vocabulary from `auth/`, so it lives with the other `required_scope`
117
- * check in `fuz_auth_guard_resolver` — which is also the only site every
118
- * route spec traverses, since the route pipeline never parses this schema.
134
+ * check in `fuz_auth_guard_resolver`.
119
135
  *
120
136
  * Invariant 2 — the `actor !== 'none' ⟺ input or query declares
121
137
  * acting?: ActingActor` biconditional — needs introspection of the
@@ -184,18 +200,39 @@ export declare const is_keeper_auth: (auth: RouteAuth) => boolean;
184
200
  * `is_credential_gated_auth` instead.
185
201
  */
186
202
  export declare const is_plain_authenticated_auth: (auth: RouteAuth) => boolean;
203
+ /**
204
+ * Registry-time check of the cross-axis invariants 1, 3, and 4 (see
205
+ * `RouteAuth`). Throws on violation, naming every invariant the shape breaks.
206
+ *
207
+ * Called by every dispatcher registration loop (`apply_route_specs`,
208
+ * `compile_action_registry`) on every spec it accepts, so a spec that breaks
209
+ * one fails at assembly rather than at its first request.
210
+ *
211
+ * @param auth - the route/action's auth shape
212
+ * @param context - identifier for the throwing message (route key, RPC method, etc.)
213
+ * @throws Error when any cross-axis invariant is violated
214
+ */
215
+ export declare const assert_route_auth_invariants: (auth: RouteAuth, context: string) => void;
187
216
  /**
188
217
  * Whether a schema declares the canonical `acting?: ActingActor` field.
189
- * Reference-equality on the exported `ActingActor` schema — consumer
190
- * schemas with unrelated `acting` fields don't trip this check.
218
+ * Reference-equality on the exported `ActingActor` schema of the input's
219
+ * library — the Zod one here, the fuz_schema twin in
220
+ * `primitive_schemas_fuz.ts` — so consumer schemas with unrelated `acting`
221
+ * fields don't trip this check, nor does either twin in the other library's
222
+ * object.
191
223
  *
192
224
  * Peels through Zod wrappers (`optional`, `nullable`, `default`,
193
225
  * `transform`, `pipe`, `prefault`) via `zod_unwrap_to_object` so a spec
194
226
  * authored as `z.optional(z.strictObject({acting: ActingActor}))` or
195
227
  * `z.strictObject({acting: ActingActor}).default({})` still trips the
196
228
  * predicate.
229
+ *
230
+ * A `@fuzdev/fuz_schema` schema is read by `get_schema_entries`, which sees
231
+ * through its wrappers (`optional`, `nullable`, the defaults) and a `pipe` to
232
+ * the schema it starts with; a schema that isn't an object under them (a void
233
+ * input, say) answers `false`.
197
234
  */
198
- export declare const input_schema_declares_acting: (schema: z.ZodType) => boolean;
235
+ export declare const input_schema_declares_acting: (schema: ValidationSchema) => boolean;
199
236
  /**
200
237
  * Slots where a spec may declare the `acting?: ActingActor` field —
201
238
  * input for both REST + actions; query for REST GETs that bi-locate
@@ -203,8 +240,8 @@ export declare const input_schema_declares_acting: (schema: z.ZodType) => boolea
203
240
  * field is omitted on action call sites).
204
241
  */
205
242
  export interface ActingSlots {
206
- input: z.ZodType;
207
- query?: z.ZodType;
243
+ input: ValidationSchema;
244
+ query?: ValidationSchema;
208
245
  }
209
246
  /**
210
247
  * Registry-time biconditional check: `auth.actor !== 'none' ⟺ some