@fuzdev/fuz_app 0.165.0 → 0.166.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 (66) hide show
  1. package/dist/actions/CLAUDE.md +2 -2
  2. package/dist/actions/action_event_data.d.ts +1 -1
  3. package/dist/actions/action_rpc.d.ts.map +1 -1
  4. package/dist/actions/action_rpc.js +24 -15
  5. package/dist/actions/action_spec.d.ts +2 -2
  6. package/dist/actions/perform_action.d.ts +2 -1
  7. package/dist/actions/perform_action.d.ts.map +1 -1
  8. package/dist/auth/account_action_specs.d.ts +8 -8
  9. package/dist/auth/account_route_schema.d.ts +197 -164
  10. package/dist/auth/account_route_schema.d.ts.map +1 -1
  11. package/dist/auth/account_route_schema.js +19 -17
  12. package/dist/auth/account_routes.d.ts.map +1 -1
  13. package/dist/auth/account_routes.js +285 -294
  14. package/dist/auth/admin_action_specs.d.ts +64 -64
  15. package/dist/auth/audit_log_route_schema.d.ts +16 -8
  16. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  17. package/dist/auth/audit_log_route_schema.js +4 -3
  18. package/dist/auth/audit_log_routes.d.ts +1 -1
  19. package/dist/auth/audit_log_routes.d.ts.map +1 -1
  20. package/dist/auth/audit_log_routes.js +112 -111
  21. package/dist/auth/audit_log_schema.d.ts +22 -22
  22. package/dist/auth/bootstrap_route_schema.d.ts +46 -69
  23. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  24. package/dist/auth/bootstrap_route_schema.js +8 -7
  25. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  26. package/dist/auth/bootstrap_routes.js +100 -98
  27. package/dist/auth/role_grant_offer_action_specs.d.ts +4 -4
  28. package/dist/auth/signup_route_schema.d.ts +9 -4
  29. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  30. package/dist/auth/signup_route_schema.js +5 -3
  31. package/dist/auth/signup_routes.d.ts.map +1 -1
  32. package/dist/auth/signup_routes.js +170 -170
  33. package/dist/http/CLAUDE.md +48 -3
  34. package/dist/http/common_routes.d.ts +1 -1
  35. package/dist/http/common_routes.d.ts.map +1 -1
  36. package/dist/http/common_routes.js +13 -11
  37. package/dist/http/db_routes.d.ts.map +1 -1
  38. package/dist/http/db_routes.js +25 -28
  39. package/dist/http/error_schemas.d.ts +5 -1
  40. package/dist/http/error_schemas.d.ts.map +1 -1
  41. package/dist/http/error_schemas.js +5 -1
  42. package/dist/http/route_result.d.ts +101 -0
  43. package/dist/http/route_result.d.ts.map +1 -0
  44. package/dist/http/route_result.js +56 -0
  45. package/dist/http/route_spec.d.ts +110 -6
  46. package/dist/http/route_spec.d.ts.map +1 -1
  47. package/dist/http/route_spec.js +82 -14
  48. package/dist/rate_limiter.d.ts +0 -9
  49. package/dist/rate_limiter.d.ts.map +1 -1
  50. package/dist/rate_limiter.js +0 -15
  51. package/dist/server/serve_fact_route.d.ts.map +1 -1
  52. package/dist/server/serve_fact_route.js +23 -21
  53. package/dist/server/surface_route.d.ts +1 -1
  54. package/dist/server/surface_route.d.ts.map +1 -1
  55. package/dist/server/surface_route.js +4 -2
  56. package/dist/testing/CLAUDE.md +5 -3
  57. package/dist/testing/adversarial_404.d.ts.map +1 -1
  58. package/dist/testing/adversarial_404.js +12 -7
  59. package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
  60. package/dist/testing/cross_backend/login_security.js +3 -2
  61. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  62. package/dist/testing/cross_backend/rust_spine_consumer_surface.js +2 -6
  63. package/dist/testing/stubs.d.ts +14 -3
  64. package/dist/testing/stubs.d.ts.map +1 -1
  65. package/dist/testing/stubs.js +21 -6
  66. package/package.json +1 -1
@@ -12,7 +12,9 @@
12
12
  * @module
13
13
  */
14
14
  import { UnreachableError } from '@fuzdev/fuz_util/error.ts';
15
- import { ERROR_AUTHENTICATION_REQUIRED, ERROR_INSUFFICIENT_PERMISSIONS } from '../http/error_schemas.js';
15
+ import { attach_route_handler } from '../http/route_spec.js';
16
+ import { route_fail, route_raw } from '../http/route_result.js';
17
+ import { REST_AUTHENTICATION_REQUIRED, REST_INSUFFICIENT_PERMISSIONS } from '../http/error_schemas.js';
16
18
  import { has_test_context_preset } from '../hono_context.js';
17
19
  import { create_audit_log_route_shape, DEFAULT_AUDIT_STREAM_ROLE } from './audit_log_route_schema.js';
18
20
  import { create_sse_response } from '../realtime/sse.js';
@@ -75,121 +77,120 @@ export const create_audit_log_route_specs = (options) => {
75
77
  validate_sse_keep_alive_ms(keep_alive_ms);
76
78
  const required_role = options.required_role ?? DEFAULT_AUDIT_STREAM_ROLE;
77
79
  return [
78
- {
79
- ...create_audit_log_route_shape(required_role),
80
- handler: async (c, route) => {
81
- // Rule 3 is declared on the route shape's `auth.required_scope`,
82
- // so a narrowed token is refused ahead of the role gate rather
83
- // than here.
84
- const ctx = require_request_context(c);
85
- // scope = session hash (capped → tabs-per-session limit and
86
- // session-specific `session_revoke` close). groups = [account_id]
87
- // (uncapped → coarse close on role_grant_revoke / session_revoke_all
88
- // / password_change / account delete). The route shape admits
89
- // sessions only, so `api_token_id` is null here; it is registered
90
- // when present so that a consumer widening the credential gate
91
- // still has a revoked token's stream closed by `token_revoke`.
92
- // Both come off the resolved credential, which carries each only
93
- // for its own credential type.
94
- const resolved = get_resolved_auth(c);
95
- const session_hash = resolved_auth_session_hash(resolved);
96
- const api_token_id = resolved_auth_api_token_id(resolved);
97
- // Register pending first: from here every revocation finds the
98
- // stream (TSDoc, "Admission").
99
- const pending = registry.subscribe_pending({
100
- channels: [AUDIT_LOG_CHANNEL],
101
- scope: session_hash ?? undefined,
102
- groups: api_token_id === null ? [ctx.account.id] : [ctx.account.id, api_token_id]
103
- });
104
- // The pending registration is released on every path that does not
105
- // admit it — a refusal, a failed re-read, a throw while building the
106
- // response — so none of them can leak an entry nothing delivers to.
107
- let admitted = false;
108
- try {
109
- // Re-read what the gates read, now that the stream is registered:
110
- // a revocation that closed before the registration is committed,
111
- // so these see it. A throw here fails closed — no stream opens
112
- // unchecked. Skipped under the test-preset escape hatch, whose
113
- // pre-baked context has no rows behind it to re-read, and for a
114
- // registration born closed by the shutdown, which admission
115
- // refuses whatever they answer.
116
- if (!has_test_context_preset(c) && !registry.closing) {
117
- const reread = async () => {
118
- // Global grants only, like the `require_role` gate that ran in
119
- // the pipeline — a scoped grant must not open the instance-wide
120
- // stream.
121
- const recheck = resolved === null
122
- ? 'credential_revoked'
123
- : await recheck_admission(route, {
124
- resolved,
125
- request_context: ctx,
80
+ attach_route_handler(create_audit_log_route_shape(required_role), async (c, route) => {
81
+ // Rule 3 is declared on the route shape's `auth.required_scope`,
82
+ // so a narrowed token is refused ahead of the role gate rather
83
+ // than here.
84
+ const ctx = require_request_context(c);
85
+ // scope = session hash (capped → tabs-per-session limit and
86
+ // session-specific `session_revoke` close). groups = [account_id]
87
+ // (uncapped → coarse close on role_grant_revoke / session_revoke_all
88
+ // / password_change / account delete). The route shape admits
89
+ // sessions only, so `api_token_id` is null here; it is registered
90
+ // when present so that a consumer widening the credential gate
91
+ // still has a revoked token's stream closed by `token_revoke`.
92
+ // Both come off the resolved credential, which carries each only
93
+ // for its own credential type.
94
+ const resolved = get_resolved_auth(c);
95
+ const session_hash = resolved_auth_session_hash(resolved);
96
+ const api_token_id = resolved_auth_api_token_id(resolved);
97
+ // Register pending first: from here every revocation finds the
98
+ // stream (TSDoc, "Admission").
99
+ const pending = registry.subscribe_pending({
100
+ channels: [AUDIT_LOG_CHANNEL],
101
+ scope: session_hash ?? undefined,
102
+ groups: api_token_id === null ? [ctx.account.id] : [ctx.account.id, api_token_id]
103
+ });
104
+ // The pending registration is released on every path that does not
105
+ // admit it — a refusal, a failed re-read, a throw while building the
106
+ // response — so none of them can leak an entry nothing delivers to.
107
+ let admitted = false;
108
+ try {
109
+ // Re-read what the gates read, now that the stream is registered:
110
+ // a revocation that closed before the registration is committed,
111
+ // so these see it. A throw here fails closed — no stream opens
112
+ // unchecked. Skipped under the test-preset escape hatch, whose
113
+ // pre-baked context has no rows behind it to re-read, and for a
114
+ // registration born closed by the shutdown, which admission
115
+ // refuses whatever they answer.
116
+ if (!has_test_context_preset(c) && !registry.closing) {
117
+ const reread = async () => {
118
+ // Global grants only, like the `require_role` gate that ran in
119
+ // the pipeline — a scoped grant must not open the instance-wide
120
+ // stream.
121
+ const recheck = resolved === null
122
+ ? 'credential_revoked'
123
+ : await recheck_admission(route, {
124
+ resolved,
125
+ request_context: ctx,
126
+ required_roles: [required_role]
127
+ });
128
+ switch (recheck) {
129
+ case 'admitted':
130
+ return null;
131
+ case 'credential_revoked':
132
+ log.info('audit stream: credential revoked during the request', ctx.account.id);
133
+ return route_fail(REST_AUTHENTICATION_REQUIRED);
134
+ case 'actor_inactive':
135
+ log.info('audit stream: acting actor deleted during the request', ctx.account.id);
136
+ return route_fail(REST_AUTHENTICATION_REQUIRED);
137
+ case 'role_revoked':
138
+ log.info('audit stream: role revoked during the request', ctx.account.id);
139
+ return route_fail(REST_INSUFFICIENT_PERMISSIONS, {
126
140
  required_roles: [required_role]
127
141
  });
128
- switch (recheck) {
129
- case 'admitted':
130
- return null;
131
- case 'credential_revoked':
132
- log.info('audit stream: credential revoked during the request', ctx.account.id);
133
- return c.json({ error: ERROR_AUTHENTICATION_REQUIRED }, 401);
134
- case 'actor_inactive':
135
- log.info('audit stream: acting actor deleted during the request', ctx.account.id);
136
- return c.json({ error: ERROR_AUTHENTICATION_REQUIRED }, 401);
137
- case 'role_revoked':
138
- log.info('audit stream: role revoked during the request', ctx.account.id);
139
- return c.json({ error: ERROR_INSUFFICIENT_PERMISSIONS, required_roles: [required_role] }, 403);
140
- default:
141
- throw new UnreachableError(recheck);
142
- }
143
- };
144
- const refusal = await reread().catch((error) => {
145
- // the shutdown closed the registration and then the database
146
- // under the re-read: the answer is the shutdown's — admission
147
- // below refuses, since a closing registry admits nothing —
148
- // not a failure
149
- if (registry.closing) {
150
- log.info('audit stream: re-read ended by the shutdown', ctx.account.id, error);
151
- return null;
152
- }
153
- throw error;
154
- });
155
- if (refusal)
156
- return refusal;
157
- }
158
- // Admit — the cap's eviction happens here, after every gate. A
159
- // registration a revocation or the shutdown closed while it was
160
- // pending, or one born closed, is not admitted: the stream is
161
- // closed at once, so the body is the
162
- // connect comment and nothing else, and the client reconnects
163
- // into the gates. The close listener goes on first: a client that
164
- // left during the re-reads gets a stream that is already closed,
165
- // whose listener runs at once and removes the registration, so
166
- // `admit` refuses it rather than evicting a live stream for it.
167
- const { response, stream } = create_sse_response(c, log, {
168
- account_id: ctx.account.id,
169
- keep_alive_ms
142
+ default:
143
+ throw new UnreachableError(recheck);
144
+ }
145
+ };
146
+ const refusal = await reread().catch((error) => {
147
+ // the shutdown closed the registration and then the database
148
+ // under the re-read: the answer is the shutdown's — admission
149
+ // below refuses, since a closing registry admits nothing —
150
+ // not a failure
151
+ if (registry.closing) {
152
+ log.info('audit stream: re-read ended by the shutdown', ctx.account.id, error);
153
+ return null;
154
+ }
155
+ throw error;
170
156
  });
171
- stream.on_close(pending.unsubscribe);
172
- admitted = registry.admit(pending, stream);
173
- if (!admitted) {
174
- log.info('audit stream: closed before admission', ctx.account.id);
175
- stream.close();
176
- }
177
- else {
178
- // The stream ends when the credential it opened on expires —
179
- // closed as a revocation closes it (TSDoc, "Credential
180
- // deadline").
181
- stream.on_close(schedule_credential_deadline(resolved?.credential_deadline ?? null, () => {
182
- log.info('audit stream: credential expired', ctx.account.id);
183
- stream.close();
184
- }));
185
- }
186
- return response;
157
+ if (refusal)
158
+ return refusal;
187
159
  }
188
- finally {
189
- if (!admitted)
190
- pending.unsubscribe();
160
+ // Admit — the cap's eviction happens here, after every gate. A
161
+ // registration a revocation or the shutdown closed while it was
162
+ // pending, or one born closed, is not admitted: the stream is
163
+ // closed at once, so the body is the
164
+ // connect comment and nothing else, and the client reconnects
165
+ // into the gates. The close listener goes on first: a client that
166
+ // left during the re-reads gets a stream that is already closed,
167
+ // whose listener runs at once and removes the registration, so
168
+ // `admit` refuses it rather than evicting a live stream for it.
169
+ const { response, stream } = create_sse_response(c, log, {
170
+ account_id: ctx.account.id,
171
+ keep_alive_ms
172
+ });
173
+ stream.on_close(pending.unsubscribe);
174
+ admitted = registry.admit(pending, stream);
175
+ if (!admitted) {
176
+ log.info('audit stream: closed before admission', ctx.account.id);
177
+ stream.close();
178
+ }
179
+ else {
180
+ // The stream ends when the credential it opened on expires —
181
+ // closed as a revocation closes it (TSDoc, "Credential
182
+ // deadline").
183
+ stream.on_close(schedule_credential_deadline(resolved?.credential_deadline ?? null, () => {
184
+ log.info('audit stream: credential expired', ctx.account.id);
185
+ stream.close();
186
+ }));
191
187
  }
188
+ return route_raw(response);
189
+ }
190
+ finally {
191
+ if (!admitted)
192
+ pending.unsubscribe();
192
193
  }
193
- }
194
+ })
194
195
  ];
195
196
  };
@@ -175,25 +175,25 @@ export declare const audit_metadata_schemas: Readonly<{
175
175
  email: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
176
176
  }>;
177
177
  password_change: import("@fuzdev/fuz_schema/schema.ts").Schema<({
178
- credential_type?: "session" | "api_token" | "daemon_token" | undefined;
179
178
  reason?: "concurrent_change" | undefined;
180
179
  sessions_revoked?: number | undefined;
181
180
  tokens_revoked?: number | undefined;
182
- } & Record<string, unknown>) | null, ({
183
181
  credential_type?: "session" | "api_token" | "daemon_token" | undefined;
182
+ } & Record<string, unknown>) | null, ({
184
183
  reason?: "concurrent_change" | undefined;
185
184
  sessions_revoked?: number | undefined;
186
185
  tokens_revoked?: number | undefined;
187
- } & Record<string, unknown>) | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{
188
186
  credential_type?: "session" | "api_token" | "daemon_token" | undefined;
187
+ } & Record<string, unknown>) | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{
189
188
  reason?: "concurrent_change" | undefined;
190
189
  sessions_revoked?: number | undefined;
191
190
  tokens_revoked?: number | undefined;
192
- } & Record<string, unknown>, {
193
191
  credential_type?: "session" | "api_token" | "daemon_token" | undefined;
192
+ } & Record<string, unknown>, {
194
193
  reason?: "concurrent_change" | undefined;
195
194
  sessions_revoked?: number | undefined;
196
195
  tokens_revoked?: number | undefined;
196
+ credential_type?: "session" | "api_token" | "daemon_token" | undefined;
197
197
  } & Record<string, unknown>, "loose_object", {
198
198
  sessions_revoked: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>;
199
199
  tokens_revoked: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>;
@@ -216,14 +216,14 @@ export declare const audit_metadata_schemas: Readonly<{
216
216
  credential_type: import("@fuzdev/fuz_schema/schema.ts").Schema<"session" | "api_token" | "daemon_token" | undefined, "session" | "api_token" | "daemon_token" | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<"session" | "api_token" | "daemon_token", "session" | "api_token" | "daemon_token", "one_of", readonly ["session", "api_token", "daemon_token"]>>>;
217
217
  }>;
218
218
  session_revoke_all: import("@fuzdev/fuz_schema/schema.ts").Schema<{
219
- credential_type?: "session" | "api_token" | "daemon_token" | undefined;
220
- reason?: string | undefined;
221
219
  count?: number | undefined;
220
+ reason?: string | undefined;
221
+ credential_type?: "session" | "api_token" | "daemon_token" | undefined;
222
222
  attempted_account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
223
223
  } & Record<string, unknown>, {
224
- credential_type?: "session" | "api_token" | "daemon_token" | undefined;
225
- reason?: string | undefined;
226
224
  count?: number | undefined;
225
+ reason?: string | undefined;
226
+ credential_type?: "session" | "api_token" | "daemon_token" | undefined;
227
227
  attempted_account_id?: string | undefined;
228
228
  } & Record<string, unknown>, "loose_object", {
229
229
  count: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>;
@@ -260,12 +260,12 @@ export declare const audit_metadata_schemas: Readonly<{
260
260
  credential_type: import("@fuzdev/fuz_schema/schema.ts").Schema<"session" | "api_token" | "daemon_token" | undefined, "session" | "api_token" | "daemon_token" | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<"session" | "api_token" | "daemon_token", "session" | "api_token" | "daemon_token", "one_of", readonly ["session", "api_token", "daemon_token"]>>>;
261
261
  }>;
262
262
  token_revoke_all: import("@fuzdev/fuz_schema/schema.ts").Schema<{
263
- reason?: string | undefined;
264
263
  count?: number | undefined;
264
+ reason?: string | undefined;
265
265
  attempted_account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
266
266
  } & Record<string, unknown>, {
267
- reason?: string | undefined;
268
267
  count?: number | undefined;
268
+ reason?: string | undefined;
269
269
  attempted_account_id?: string | undefined;
270
270
  } & Record<string, unknown>, "loose_object", {
271
271
  count: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>;
@@ -837,25 +837,25 @@ export declare const AuditLogEventJson: import("@fuzdev/fuz_schema/schema.ts").S
837
837
  id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
838
838
  account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
839
839
  created_at: string;
840
- outcome: "success" | "failure";
840
+ ip: string | null;
841
841
  seq: number;
842
842
  event_type: string;
843
+ outcome: "success" | "failure";
843
844
  actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
844
845
  target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
845
846
  target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
846
- ip: string | null;
847
847
  }, {
848
848
  metadata: Record<string, unknown> | null;
849
849
  id: string;
850
850
  account_id: string | null;
851
851
  created_at: string;
852
- outcome: "success" | "failure";
852
+ ip: string | null;
853
853
  seq: number;
854
854
  event_type: string;
855
+ outcome: "success" | "failure";
855
856
  actor_id: string | null;
856
857
  target_account_id: string | null;
857
858
  target_actor_id: string | null;
858
- ip: string | null;
859
859
  }, "object", {
860
860
  id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
861
861
  readonly '~types'?: {
@@ -902,13 +902,13 @@ export declare const AuditLogEventWithUsernamesJson: import("@fuzdev/fuz_schema/
902
902
  account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
903
903
  created_at: string;
904
904
  username: string | null;
905
- outcome: "success" | "failure";
905
+ ip: string | null;
906
906
  seq: number;
907
907
  event_type: string;
908
+ outcome: "success" | "failure";
908
909
  actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
909
910
  target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
910
911
  target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
911
- ip: string | null;
912
912
  target_username: string | null;
913
913
  }, {
914
914
  metadata: Record<string, unknown> | null;
@@ -916,13 +916,13 @@ export declare const AuditLogEventWithUsernamesJson: import("@fuzdev/fuz_schema/
916
916
  account_id: string | null;
917
917
  created_at: string;
918
918
  username: string | null;
919
- outcome: "success" | "failure";
919
+ ip: string | null;
920
920
  seq: number;
921
921
  event_type: string;
922
+ outcome: "success" | "failure";
922
923
  actor_id: string | null;
923
924
  target_account_id: string | null;
924
925
  target_actor_id: string | null;
925
- ip: string | null;
926
926
  target_username: string | null;
927
927
  }, "object", {
928
928
  username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
@@ -972,13 +972,13 @@ export declare const RoleGrantHistoryEventJson: import("@fuzdev/fuz_schema/schem
972
972
  account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
973
973
  created_at: string;
974
974
  username: string | null;
975
- outcome: "success" | "failure";
975
+ ip: string | null;
976
976
  seq: number;
977
977
  event_type: string;
978
+ outcome: "success" | "failure";
978
979
  actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
979
980
  target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
980
981
  target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
981
- ip: string | null;
982
982
  target_username: string | null;
983
983
  }, {
984
984
  metadata: Record<string, unknown> | null;
@@ -986,13 +986,13 @@ export declare const RoleGrantHistoryEventJson: import("@fuzdev/fuz_schema/schem
986
986
  account_id: string | null;
987
987
  created_at: string;
988
988
  username: string | null;
989
- outcome: "success" | "failure";
989
+ ip: string | null;
990
990
  seq: number;
991
991
  event_type: string;
992
+ outcome: "success" | "failure";
992
993
  actor_id: string | null;
993
994
  target_account_id: string | null;
994
995
  target_actor_id: string | null;
995
- ip: string | null;
996
996
  target_username: string | null;
997
997
  }, "object", {
998
998
  username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
@@ -4,9 +4,9 @@
4
4
  * Split from `bootstrap_routes.ts` so the route's declared shape (method,
5
5
  * path, auth, input/output/error schemas) is importable **without** the
6
6
  * hono-coupled handler (which sets a session cookie and reads the client
7
- * IP off the Hono context). `create_bootstrap_route_specs` spreads
8
- * `bootstrap_route_shape` and attaches the live handler; the test surface
9
- * builder (`create_test_app_surface_spec`) spreads it with a stub handler so
7
+ * IP off the Hono context). `create_bootstrap_route_specs` attaches the live
8
+ * handler to `bootstrap_route_shape` (`attach_route_handler`); the test surface
9
+ * builder (`create_test_app_surface_spec`) attaches a stub handler so
10
10
  * attack-surface generation reads the real shape without pulling the
11
11
  * in-process Hono app onto cross-process consumers. Single source of truth —
12
12
  * the shape can't drift between the live route and the surface.
@@ -99,82 +99,59 @@ export declare const BootstrapOutput: import("@fuzdev/fuz_schema/schema.ts").Sch
99
99
  export type BootstrapOutput = Infer<typeof BootstrapOutput>;
100
100
  /**
101
101
  * The `POST /bootstrap` route shape minus its handler — pure hono-free data.
102
- * `create_bootstrap_route_specs` spreads this and attaches the live handler;
103
- * surface generation spreads it with a stub handler (handlers are never run
102
+ * `create_bootstrap_route_specs` attaches the live handler to it
103
+ * (`attach_route_handler`); surface generation attaches a stub (handlers are never run
104
104
  * during surface assembly, only the shape is read).
105
105
  */
106
- export declare const bootstrap_route_shape: {
107
- method: "POST";
108
- path: string;
109
- auth: {
110
- account: "none";
111
- actor: "none";
106
+ export declare const bootstrap_route_shape: import("../http/route_spec.js").RouteShape<readonly [import("../http/error_schemas.js").RestErrorDef<401, "invalid_token", Record<never, never>>, import("../http/error_schemas.js").RestErrorDef<403, "already_bootstrapped", Record<never, never>>, import("../http/error_schemas.js").RestErrorDef<404, "token_file_missing", Record<never, never>>], import("@fuzdev/fuz_schema/schema.ts").Schema<{
107
+ account: {
108
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
109
+ username: string;
110
+ };
111
+ actor: {
112
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
113
+ };
114
+ ok: true;
115
+ }, {
116
+ account: {
117
+ id: string;
118
+ username: string;
119
+ };
120
+ actor: {
121
+ id: string;
112
122
  };
113
- mints_credential: true;
114
- description: string;
115
- transaction: false;
116
- input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
123
+ ok: true;
124
+ }, "object", {
125
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
126
+ account: import("@fuzdev/fuz_schema/schema.ts").Schema<{
127
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
117
128
  username: string;
118
- token: string;
119
- password: string;
120
129
  }, {
130
+ id: string;
121
131
  username: string;
122
- token: string;
123
- password: string;
124
132
  }, "object", {
125
- token: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
133
+ id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
134
+ readonly '~types'?: {
135
+ readonly input: string;
136
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
137
+ } | undefined;
138
+ };
126
139
  username: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
127
- password: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
128
140
  }>;
129
- output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
130
- account: {
131
- id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
132
- username: string;
133
- };
134
- actor: {
135
- id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
136
- };
137
- ok: true;
141
+ actor: import("@fuzdev/fuz_schema/schema.ts").Schema<{
142
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
138
143
  }, {
139
- account: {
140
- id: string;
141
- username: string;
142
- };
143
- actor: {
144
- id: string;
145
- };
146
- ok: true;
144
+ id: string;
147
145
  }, "object", {
148
- ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
149
- account: import("@fuzdev/fuz_schema/schema.ts").Schema<{
150
- id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
151
- username: string;
152
- }, {
153
- id: string;
154
- username: string;
155
- }, "object", {
156
- id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
157
- readonly '~types'?: {
158
- readonly input: string;
159
- readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
160
- } | undefined;
161
- };
162
- username: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
163
- }>;
164
- actor: import("@fuzdev/fuz_schema/schema.ts").Schema<{
165
- id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
166
- }, {
167
- id: string;
168
- }, "object", {
169
- id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
170
- readonly '~types'?: {
171
- readonly input: string;
172
- readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
173
- } | undefined;
174
- };
175
- }>;
146
+ id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
147
+ readonly '~types'?: {
148
+ readonly input: string;
149
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
150
+ } | undefined;
151
+ };
176
152
  }>;
177
- rate_limit: "ip";
178
- errors: (import("../http/error_schemas.js").RestErrorDef<401, "invalid_token", Record<never, never>> | import("../http/error_schemas.js").RestErrorDef<403, "already_bootstrapped", Record<never, never>> | import("../http/error_schemas.js").RestErrorDef<404, "token_file_missing", Record<never, never>>)[];
179
- };
153
+ }>, {
154
+ readonly account: "none";
155
+ readonly actor: "none";
156
+ }, "ip">;
180
157
  //# sourceMappingURL=bootstrap_route_schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap_route_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/bootstrap_route_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAON,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAYtC;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWI,CAAC"}
1
+ {"version":3,"file":"bootstrap_route_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/bootstrap_route_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAON,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAYtC;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWhC,CAAC"}