@fuzdev/fuz_app 0.160.0 → 0.162.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 (98) hide show
  1. package/dist/auth/CLAUDE.md +31 -21
  2. package/dist/auth/account_action_specs.d.ts +173 -35
  3. package/dist/auth/account_action_specs.d.ts.map +1 -1
  4. package/dist/auth/account_action_specs.js +10 -7
  5. package/dist/auth/account_route_schema.d.ts +293 -46
  6. package/dist/auth/account_route_schema.d.ts.map +1 -1
  7. package/dist/auth/account_route_schema.js +5 -4
  8. package/dist/auth/account_schema.d.ts +489 -103
  9. package/dist/auth/account_schema.d.ts.map +1 -1
  10. package/dist/auth/account_schema.js +67 -47
  11. package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
  12. package/dist/auth/actor_search_action_specs.d.ts +6 -6
  13. package/dist/auth/admin_action_specs.d.ts +2748 -505
  14. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  15. package/dist/auth/admin_action_specs.js +175 -187
  16. package/dist/auth/app_settings_schema.d.ts +46 -23
  17. package/dist/auth/app_settings_schema.d.ts.map +1 -1
  18. package/dist/auth/app_settings_schema.js +12 -15
  19. package/dist/auth/audit_emitter.d.ts +8 -3
  20. package/dist/auth/audit_emitter.d.ts.map +1 -1
  21. package/dist/auth/audit_emitter.js +32 -9
  22. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  23. package/dist/auth/audit_log_queries.js +4 -3
  24. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  25. package/dist/auth/audit_log_schema.d.ts +791 -253
  26. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  27. package/dist/auth/audit_log_schema.js +198 -198
  28. package/dist/auth/audit_log_schema_fuz.d.ts +53 -0
  29. package/dist/auth/audit_log_schema_fuz.d.ts.map +1 -0
  30. package/dist/auth/audit_log_schema_fuz.js +50 -0
  31. package/dist/auth/credential_type_schema.d.ts +5 -8
  32. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  33. package/dist/auth/credential_type_schema.js +6 -10
  34. package/dist/auth/grant_path_schema.d.ts +4 -7
  35. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  36. package/dist/auth/grant_path_schema.js +6 -10
  37. package/dist/auth/invite_schema.d.ts +98 -26
  38. package/dist/auth/invite_schema.d.ts.map +1 -1
  39. package/dist/auth/invite_schema.js +21 -14
  40. package/dist/auth/migrations.d.ts.map +1 -1
  41. package/dist/auth/migrations.js +27 -0
  42. package/dist/auth/name_schema.d.ts +63 -0
  43. package/dist/auth/name_schema.d.ts.map +1 -0
  44. package/dist/auth/name_schema.js +65 -0
  45. package/dist/auth/request_context.d.ts.map +1 -1
  46. package/dist/auth/request_context.js +2 -1
  47. package/dist/auth/role_grant_offer_action_specs.d.ts +192 -192
  48. package/dist/auth/role_grant_offer_action_specs.js +2 -2
  49. package/dist/auth/role_grant_offer_notifications.d.ts +126 -126
  50. package/dist/auth/role_grant_offer_schema.d.ts +12 -12
  51. package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
  52. package/dist/auth/role_grant_offer_schema.js +8 -8
  53. package/dist/auth/role_schema.d.ts +14 -25
  54. package/dist/auth/role_schema.d.ts.map +1 -1
  55. package/dist/auth/role_schema.js +15 -29
  56. package/dist/auth/role_schema_fuz.d.ts +4 -3
  57. package/dist/auth/role_schema_fuz.d.ts.map +1 -1
  58. package/dist/auth/role_schema_fuz.js +7 -5
  59. package/dist/auth/scope_kind_schema.d.ts +13 -26
  60. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  61. package/dist/auth/scope_kind_schema.js +15 -31
  62. package/dist/auth/scope_kind_schema_fuz.d.ts +4 -3
  63. package/dist/auth/scope_kind_schema_fuz.d.ts.map +1 -1
  64. package/dist/auth/scope_kind_schema_fuz.js +7 -5
  65. package/dist/auth/self_service_role_action_specs.d.ts +2 -2
  66. package/dist/auth/token_scope.d.ts +7 -13
  67. package/dist/auth/token_scope.d.ts.map +1 -1
  68. package/dist/auth/token_scope.js +9 -14
  69. package/dist/dev/setup.d.ts +14 -7
  70. package/dist/dev/setup.d.ts.map +1 -1
  71. package/dist/dev/setup.js +11 -6
  72. package/dist/primitive_schemas.d.ts +47 -4
  73. package/dist/primitive_schemas.d.ts.map +1 -1
  74. package/dist/primitive_schemas.js +40 -19
  75. package/dist/primitive_schemas_fuz.d.ts +70 -8
  76. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  77. package/dist/primitive_schemas_fuz.js +62 -7
  78. package/dist/testing/CLAUDE.md +11 -6
  79. package/dist/testing/app_server.d.ts +3 -1
  80. package/dist/testing/app_server.d.ts.map +1 -1
  81. package/dist/testing/app_server.js +6 -2
  82. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  83. package/dist/testing/audit_drift_guard.js +12 -13
  84. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  85. package/dist/testing/cross_backend/identity_parity.js +24 -13
  86. package/dist/testing/cross_backend/role_grant_role_grammar.d.ts.map +1 -1
  87. package/dist/testing/cross_backend/role_grant_role_grammar.js +8 -15
  88. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  89. package/dist/testing/cross_backend/session_cap.js +4 -3
  90. package/dist/testing/db_entities.d.ts +3 -1
  91. package/dist/testing/db_entities.d.ts.map +1 -1
  92. package/dist/testing/db_entities.js +4 -2
  93. package/dist/testing/integration.d.ts.map +1 -1
  94. package/dist/testing/integration.js +3 -2
  95. package/dist/zod.d.ts +2 -1
  96. package/dist/zod.d.ts.map +1 -1
  97. package/dist/zod.js +6 -2
  98. package/package.json +1 -1
@@ -54,21 +54,23 @@ Cross-cutting notes that don't live on any single symbol:
54
54
 
55
55
  ### Schemas, types, DDL
56
56
 
57
- Convention — `*_schema.ts` is Zod-only; `*_ddl.ts` holds DDL strings.
58
-
59
- - `auth/account_schema.ts` — `Account`, `Actor`, `RoleGrant`, `AuthSession`, `ApiToken` + client-safe JSON shapes. Grant predicates over wire fields: `is_role_grant_active` (not revoked, not expired) and `has_global_role(role_grants, role, now?)` (an active grant of the role with `scope_id === null` — the bare-list form of `has_scoped_role(ctx, role, null)`, used client-side by `AuthState`).
60
- - `auth/role_schema.ts` — `RoleName` (lowercase letters and underscores, no leading, trailing or consecutive underscores, at most `ROLE_NAME_LENGTH_MAX` = 64 characters — the grammar every `role` input and every registered role holds, twin of the Rust `is_valid_role_name`), the constants it is built from (`ROLE_NAME_PATTERN`, `ROLE_NAME_LENGTH_MESSAGE`, `ROLE_NAME_PATTERN_MESSAGE`), `RoleSpec`, `ROLE_KEEPER`, `ROLE_ADMIN`, `is_builtin_role`, `create_role_schema`, `builtin_role_specs_by_name`, `role_has_grant_path`, `list_roles_with_grant_path`.
61
- - `auth/role_schema_fuz.ts` — the `@fuzdev/fuz_schema` twin of `RoleName` under the same name (`@nodocs` while the Zod one stays), `pipe(bounded_string({max, max_message}), message(regex(ROLE_NAME_PATTERN), ROLE_NAME_PATTERN_MESSAGE))` over the same constants: the same verdict, output and JSON Schema as the Zod one, and its messages; a string both too long and off the grammar gets the length issue alone, where Zod adds the grammar issue. Pinned by `role_schema_fuz.test.ts`. `self_service_role_set`'s input declares it; every other `role` input is the Zod one.
62
- - `auth/scope_kind_schema.ts` — `ScopeKindName`, the constants its messages come from (`SCOPE_KIND_NAME_LENGTH_MESSAGE`, `SCOPE_KIND_NAME_PATTERN_MESSAGE`), `create_scope_kind_schema` (open registry, no builtins), `SCOPE_KIND_LENGTH_MAX` (64). `ScopeKindName` (grammar and cap) checks a registered name and the `scope_kind` on `role_grant_offer_create` / `role_grant_assign`, which is copied into the row and its audit metadata; off the grammar is the partial unique indexes' `'GLOBAL'` token.
63
- - `auth/credential_type_schema.ts` — `CredentialTypeName`, `CREDENTIAL_TYPE_SESSION` / `_API_TOKEN` / `_DAEMON_TOKEN`, `create_credential_type_schema`.
64
- - `auth/grant_path_schema.ts` — `GrantPathName`, `GRANT_PATH_ADMIN` / `_SELF_SERVICE` / `_SYSTEM` / `_BOOTSTRAP`, `create_grant_path_schema`.
57
+ Convention — `*_schema.ts` holds a domain's schemas, Zod or `@fuzdev/fuz_schema`; a `*_schema_fuz.ts` holds the fuz_schema twins of Zod schemas that stay; `*_ddl.ts` holds DDL strings.
58
+
59
+ - `auth/account_schema.ts` — `Account`, `Actor`, `RoleGrant`, `AuthSession`, `ApiToken` + client-safe JSON shapes, `@fuzdev/fuz_schema` schemas but for the Zod `ClientApiTokenJson`: `SessionId` (`brand(Blake3Hash, 'SessionId')`, minted by `hash_session_token`), `SessionAccountJson` and `AdminAccountJson` (their `username` `UsernameCanonical`, so a username in another case fails), `AuthSessionJson`, `RoleGrantSummaryJson` and `PendingOfferSummaryJson` (`role` the fuz_schema `RoleName`, `scope_kind` the fuz_schema `ScopeKindName` or `null`), `ActorSummaryJson`, `AdminAccountEntryJson`; every timestamp a `Timestamp`. Grant predicates over wire fields: `is_role_grant_active` (not revoked, not expired) and `has_global_role(role_grants, role, now?)` (an active grant of the role with `scope_id === null` — the bare-list form of `has_scoped_role(ctx, role, null)`, used client-side by `AuthState`).
60
+ - `auth/name_schema.ts` — the name grammar the auth vocabularies share: `NAME_REGEX` (runs of lowercase letters joined by single underscores), `NAME_LENGTH_MAX` (64), `is_valid_name`, `create_name_schema(label)` (the Zod schema, `bounded_string` then the regex) and the message builders `format_name_length_message` / `format_name_pattern_message`, so each domain keeps its own label in its messages. `RoleName`, `ScopeKindName`, `GrantPathName`, `CredentialTypeName` and a token's `surface:` name (`is_route_scope_capability`) hold it; `AuditEventTypeName` takes its cap over its own grammar. Twin of the Rust `fuz_auth::is_valid_name` / `NAME_LENGTH_MAX`.
61
+ - `auth/role_schema.ts` — `RoleName` (`create_name_schema('Role')`: lowercase letters and underscores, no leading, trailing or consecutive underscores, at most `NAME_LENGTH_MAX` = 64 characters — the grammar every `role` input and every registered role holds, twin of the Rust `is_valid_name`), its messages (`ROLE_NAME_LENGTH_MESSAGE`, `ROLE_NAME_PATTERN_MESSAGE`), `RoleSpec`, `ROLE_KEEPER`, `ROLE_ADMIN`, `is_builtin_role`, `create_role_schema`, `builtin_role_specs_by_name`, `role_has_grant_path`, `list_roles_with_grant_path`.
62
+ - `auth/role_schema_fuz.ts` — the `@fuzdev/fuz_schema` twin of `RoleName` under the same name (`@nodocs` while the Zod one stays), `pipe(bounded_string({max: NAME_LENGTH_MAX, max_message}), message(regex(NAME_REGEX), ROLE_NAME_PATTERN_MESSAGE))` over the same constants: the same verdict, output and JSON Schema as the Zod one, and its messages; a string both too long and off the grammar gets the length issue alone, where Zod adds the grammar issue. Pinned by `role_schema_fuz.test.ts`. `self_service_role_set`'s input declares it; every other `role` input is the Zod one.
63
+ - `auth/scope_kind_schema.ts` — `ScopeKindName`, the constants its messages come from (`SCOPE_KIND_NAME_LENGTH_MESSAGE`, `SCOPE_KIND_NAME_PATTERN_MESSAGE`), `create_scope_kind_schema` (open registry, no builtins). `ScopeKindName` (`create_name_schema('Scope-kind')`, grammar and cap) checks a registered name and the `scope_kind` on `role_grant_offer_create` / `role_grant_assign`, which is copied into the row and its audit metadata; off the grammar is the partial unique indexes' `'GLOBAL'` token.
64
+ - `auth/credential_type_schema.ts` — `CredentialTypeName` (`create_name_schema('Credential-type')`), `CREDENTIAL_TYPE_SESSION` / `_API_TOKEN` / `_DAEMON_TOKEN`, `create_credential_type_schema`.
65
+ - `auth/grant_path_schema.ts` — `GrantPathName` (`create_name_schema('Grant-path')`), `GRANT_PATH_ADMIN` / `_SELF_SERVICE` / `_SYSTEM` / `_BOOTSTRAP`, `create_grant_path_schema`.
65
66
  - `auth/token_lifetime.ts` — the temporal axis of a minted token: `TokenLifetimeInput` (required union on `account_token_create` — `{kind:'eternal'}` or `{kind:'ttl', days}`), `token_lifetime_to_expires_at`, `TOKEN_TTL_DAYS_MAX`. No default — `expires_at IS NULL` always means "deliberately eternal".
66
67
  - `auth/token_scope.ts` — per-credential authority narrowing stored on `api_token.scope`: `TokenScope` / `TokenScopeInput` + constructors, `parse_stored_token_scope` (fail-closed), `token_scope_admits_method` / `_non_rpc`, and the `<section>:<id>` capability vocabulary (`token_scope_method_capability` for the dispatcher's `rpc:<method>`, `is_route_scope_capability` for the `surface:<name>` a `RouteAuth.required_scope` may declare, `token_scope_denied_body`, `TOKEN_SURFACES`). Not an open registry — see ../../../docs/security.md §Token scoping for why the identifier half is deliberately unregistered.
67
68
  - `auth/auth_ddl.ts` — `CREATE TABLE` / index / seed strings for the core identity tables.
68
- - `auth/audit_log_schema.ts` — `AUDIT_EVENT_TYPES` (the builtin event types), `AuditEventType` / `AuditEventTypeName`, `audit_metadata_schemas`, `AuditLogEvent`, `AuditLogInput`, `AuditLogConfig`, `create_audit_log_config`.
69
+ - `auth/audit_log_schema.ts` — `AUDIT_EVENT_TYPES` (the builtin event types), `AuditEventType` / `AuditEventTypeName` (Zod, `AUDIT_EVENT_TYPE_NAME_REGEX` under `NAME_LENGTH_MAX`), `audit_metadata_schemas` (fuz_schema), `AuditLogEvent`, `AuditLogInput`, `AuditLogConfig` (`metadata_schemas` of either library), `create_audit_log_config`, and the `@fuzdev/fuz_schema` wire rows `AuditLogEventJson` (`seq` `pipe(number, safe_integer)`, `created_at` a `Timestamp`), `AuditLogEventWithUsernamesJson`, `RoleGrantHistoryEventJson` and `AdminSessionJson`, built over the twins of `audit_log_schema_fuz.ts`.
70
+ - `auth/audit_log_schema_fuz.ts` — the `@fuzdev/fuz_schema` twins of `AuditEventTypeName` and `AuditOutcome` under the same names (`@nodocs` while the Zod ones stay), and the grammar and messages both are built from (`AUDIT_EVENT_TYPE_NAME_REGEX`, `AUDIT_EVENT_TYPE_NAME_LENGTH_MESSAGE`, `AUDIT_EVENT_TYPE_NAME_PATTERN_MESSAGE`), here because `audit_log_schema.ts` builds its rows from the twins: the same verdict, output and JSON Schema as the Zod ones, and their messages, but for the one length issue of a name too long and off the grammar. Pinned by `audit_log_schema_fuz.test.ts`. `audit_log_list`'s input declares them.
69
71
  - `auth/audit_log_ddl.ts` — `audit_log` table DDL with `seq BIGSERIAL` for cursor-based gap fill (BIGSERIAL converges with the Rust spine; `create_db` registers a `pg.types` int8 parser so `seq` still reads as a JS number).
70
- - `auth/invite_schema.ts` — `Invite`, `CreateInviteInput`.
71
- - `auth/app_settings_schema.ts` — `AppSettings`, `UpdateAppSettingsInput` (single-row via `CHECK (id = 1)`).
72
+ - `auth/invite_schema.ts` — `Invite`, `CreateInviteInput`, and the `@fuzdev/fuz_schema` rows `InviteJson` (`username` a `UsernameCanonical` or `null`, timestamps `Timestamp`s) and `InviteWithUsernamesJson`, whose resolved names are plain strings.
73
+ - `auth/app_settings_schema.ts` — `AppSettings` (single-row via `CHECK (id = 1)`) and its `@fuzdev/fuz_schema` schemas `AppSettingsJson` and `AppSettingsWithUsernameJson`.
72
74
  - `auth/scope_kind_schema_fuz.ts` — the `@fuzdev/fuz_schema` twin of `ScopeKindName` under the same name (`@nodocs` while the Zod one stays), built as the `RoleName` twin is, over `scope_kind_schema.ts`'s constants: the same verdict, output and JSON Schema as the Zod one, and its messages, but for the one length issue of a string too long and off the grammar. Pinned by `scope_kind_schema_fuz.test.ts`. The role_grant_offer schemas declare it.
73
75
  - `auth/role_grant_offer_schema.ts` — `RoleGrantOffer`, `RoleGrantOfferJson` (a `@fuzdev/fuz_schema` `object`: `role` the fuz_schema `RoleName`, `scope_kind` the fuz_schema `ScopeKindName` or `null`, so an offer row holding a name off either grammar fails it), `to_role_grant_offer_json`.
74
76
  - `auth/role_grant_offer_ddl.ts` — `role_grant_offer` table + indexes + `ROLE_GRANT_OFFER_SCOPE_SENTINEL_UUID` / `_GLOBAL_TOKEN` + `ROLE_GRANT_OFFER_COLUMNS` and the shared `ROLE_GRANT_OFFER_WITH_GRANTOR_SELECT` CTE tail (homed here per the placement rule in `db/sql_columns.ts`).
@@ -495,8 +497,8 @@ Four open string registries — `RoleName`, `ScopeKindName`,
495
497
  construction-time guards (name regex, duplicate detection, builtin-collision
496
498
  rejection), `ReadonlyMap` output, pass into `create_role_schema` for
497
499
  cross-axis validation. The four share one name grammar, runs of lowercase
498
- letters joined by single underscores, which a token's `surface:` name holds
499
- too.
500
+ letters joined by single underscores, at most `NAME_LENGTH_MAX` characters
501
+ (`auth/name_schema.ts`), which a token's `surface:` name holds too.
500
502
 
501
503
  Dependency flow:
502
504
 
@@ -540,14 +542,19 @@ TSDoc. The pattern that spans emit sites:
540
542
  ### Audit event extensibility
541
543
 
542
544
  Consumers extend the closed `AUDIT_EVENT_TYPES` enum via
543
- `create_audit_log_config({extra_events})` — Zod schema or `null` per type;
544
- collisions with builtins or name-format failures throw at construction. The
545
+ `create_audit_log_config({extra_events})` — a metadata schema, Zod or
546
+ `@fuzdev/fuz_schema`, or `null` per type; collisions with builtins,
547
+ name-format failures and a value of neither library throw at construction.
548
+ `query_audit_log` validates through `parse_any`, and a dropped row's log line
549
+ masks the `sensitivity: 'secret'` fields of either library's object schema.
550
+ The builtin `audit_metadata_schemas` are fuz_schema `loose_object`s
551
+ (`nullable` where the event may carry none, `literal(null)` for `logout`). The
545
552
  DB column is `TEXT NOT NULL` (no enum), so consumer types round-trip through
546
553
  list queries, the `audit_log_list` RPC, and SSE identically to builtins.
547
554
 
548
555
  `AuditLogEvent.event_type` / `AuditLogEventJson.event_type` / the
549
556
  `audit_log_list` filter input are all `AuditEventTypeName` (regex-validated
550
- string) — widened from the closed enum so consumer rows round-trip. The
557
+ string, at most `NAME_LENGTH_MAX` characters) — widened from the closed enum so consumer rows round-trip. The
551
558
  write side (`AuditLogInput<T>`, `AuditMetadataMap`) stays closed-enum so a
552
559
  builtin event's metadata narrows by its type.
553
560
 
@@ -692,15 +699,15 @@ authenticate.
692
699
  - `account_delete_action_spec` — mutation (soft delete); self-or-admin (`{account, actor}`, handler elevates to admin when `account_id` ≠ self); the self path is session-only, handler-enforced ahead of the target guards (an API or daemon token gets the dispatcher's `ERROR_CREDENTIAL_TYPE_REQUIRED` 403 via `credential_type_required_error`), while an admin deleting another account keeps any credential; input `{account_id?}`; output `{ok, deleted}`. Tombstones account + actor(s), revokes sessions/tokens, emits `account_delete` + per-actor `actor_delete`. Refuses a keeper-role target (`ERROR_CANNOT_DELETE_KEEPER`) or the sole active admin (`ERROR_CANNOT_DELETE_LAST_ADMIN`) — both fail-loud with a failure-audit row.
693
700
  - `account_purge_action_spec` — mutation (hard purge); keeper-only (`credential_types: ['daemon_token']` + `roles: ['keeper']`) + `confirm: true` + WARN; input `{account_id, confirm?}`; output `{ok, purged}`. Cascading delete; emits `account_purge` + per-actor `actor_purge` (identity snapshot survives in metadata since `audit_log` ids carry no FK). Refuses a keeper-role target (`ERROR_CANNOT_DELETE_KEEPER`) or the sole active admin (`ERROR_CANNOT_DELETE_LAST_ADMIN`).
694
701
  - `account_undelete_action_spec` — mutation (reactivation, inverse of soft delete); admin-only (`roles: ['admin']` — no self path, a tombstoned account can't authenticate); input `{account_id}`; output `{ok, undeleted}`. Clears the `deleted_at` tombstone on the account + its actor(s), emits `account_undelete` + per-actor `actor_undelete`. Does not restore revoked sessions/tokens.
695
- - `admin_session_list_action_spec` — read; input `{acting?}` (`.default({})`); output `{sessions}`.
702
+ - `admin_session_list_action_spec` — read; input `{acting?}` (an omitted input reads as `{}`); output `{sessions}`.
696
703
  - `admin_session_revoke_all_action_spec` — mutation; input `{account_id}`; output `{ok, count}`.
697
704
  - `admin_token_revoke_all_action_spec` — mutation; input `{account_id}`; output `{ok, count}`.
698
705
  - `audit_log_list_action_spec` — read; input `{event_type?, outcome?, account_id?, limit?, offset?, since_seq?}`; output `{events}`.
699
706
  - `audit_log_role_grant_history_action_spec` — read; input `{limit?, offset?}`; output `{events}`.
700
707
  - `invite_create_action_spec` — mutation; input `{email?, username?}`; output `{ok, invite}`.
701
- - `invite_list_action_spec` — read; input `{acting?}` (`.default({})`); output `{invites}`.
708
+ - `invite_list_action_spec` — read; input `{acting?}` (an omitted input reads as `{}`); output `{invites}`.
702
709
  - `invite_delete_action_spec` — mutation; input `{invite_id}`; output `{ok}`.
703
- - `app_settings_get_action_spec` — read; input `{acting?}` (`.default({})`); output `{settings}`.
710
+ - `app_settings_get_action_spec` — read; input `{acting?}` (an omitted input reads as `{}`); output `{settings}`.
704
711
  - `app_settings_update_action_spec` — mutation; input `{open_signup}`; output `{ok, settings}`.
705
712
 
706
713
  Constants: `AUDIT_LOG_LIST_LIMIT_MAX = 200`, `ADMIN_ACCOUNT_LIST_DEFAULT_LIMIT = 50`,
@@ -930,8 +937,11 @@ narrowed token that names it: the REST probe is the `surface:account_verify`
930
937
  rule-3 surface, refused to every narrowed token, and `GET /status` answers one
931
938
  as the anonymous caller.
932
939
 
933
- `session_id` validates as `Blake3Hash`; `token_id` as `ApiTokenId`
934
- (`tok_[A-Za-z0-9_-]{12}`).
940
+ `session_id` validates as `SessionId`, the fuz_schema `Blake3Hash` branded;
941
+ `token_id` as `ApiTokenId` (`tok_[A-Za-z0-9_-]{12}`). The inputs of
942
+ `account_session_revoke` and `account_token_revoke` and the outputs of
943
+ `account_verify`, `account_session_list` and `account_token_revoke` are
944
+ `@fuzdev/fuz_schema` schemas; the rest are Zod.
935
945
 
936
946
  Audit events via `deps.audit.emit` with `ip: ctx.client_ip`:
937
947
  `session_revoke`, `session_revoke_all`, `token_create`, `token_revoke`. Every
@@ -16,22 +16,84 @@ export type VerifyInput = z.infer<typeof VerifyInput>;
16
16
  /** Input for `account_session_list`. No parameters. */
17
17
  export declare const SessionListInput: z.ZodVoid;
18
18
  export type SessionListInput = z.infer<typeof SessionListInput>;
19
- /** Output for `account_session_list`. */
20
- export declare const SessionListOutput: z.ZodObject<{
21
- sessions: z.ZodArray<z.ZodObject<{
22
- id: z.core.$ZodBranded<z.ZodString, "SessionId", "out">;
23
- account_id: 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>>;
24
- created_at: z.ZodString;
25
- expires_at: z.ZodString;
26
- is_current: z.ZodBoolean;
27
- }, z.core.$strict>>;
28
- }, z.core.$strict>;
29
- export type SessionListOutput = z.infer<typeof SessionListOutput>;
30
- /** Input for `account_session_revoke`. `session_id` is the blake3 hash. */
31
- export declare const SessionRevokeInput: z.ZodObject<{
32
- session_id: z.core.$ZodBranded<z.ZodString, "SessionId", "out">;
33
- }, z.core.$strict>;
34
- export type SessionRevokeInput = z.infer<typeof SessionRevokeInput>;
19
+ /** Output for `account_session_list`, a `@fuzdev/fuz_schema` schema. */
20
+ export declare const SessionListOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
21
+ sessions: {
22
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
23
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
24
+ created_at: string;
25
+ expires_at: string;
26
+ is_current: boolean;
27
+ }[];
28
+ }, {
29
+ sessions: {
30
+ id: string;
31
+ account_id: string;
32
+ created_at: string;
33
+ expires_at: string;
34
+ is_current: boolean;
35
+ }[];
36
+ }, "object", {
37
+ sessions: import("@fuzdev/fuz_schema/schema.ts").Schema<{
38
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
39
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
40
+ created_at: string;
41
+ expires_at: string;
42
+ is_current: boolean;
43
+ }[], {
44
+ id: string;
45
+ account_id: string;
46
+ created_at: string;
47
+ expires_at: string;
48
+ is_current: boolean;
49
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
50
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
51
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
52
+ created_at: string;
53
+ expires_at: string;
54
+ is_current: boolean;
55
+ }, {
56
+ id: string;
57
+ account_id: string;
58
+ created_at: string;
59
+ expires_at: string;
60
+ is_current: boolean;
61
+ }, "object", {
62
+ id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">, 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">)[]> & {
63
+ readonly '~types'?: {
64
+ readonly input: string;
65
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
66
+ } | undefined;
67
+ };
68
+ account_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">)[]> & {
69
+ readonly '~types'?: {
70
+ readonly input: string;
71
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
72
+ } | undefined;
73
+ };
74
+ created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
75
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
76
+ is_current: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
77
+ }>>;
78
+ }>;
79
+ export type SessionListOutput = Infer<typeof SessionListOutput>;
80
+ /**
81
+ * Input for `account_session_revoke`, a `@fuzdev/fuz_schema` schema.
82
+ * `session_id` is the blake3 hash.
83
+ */
84
+ export declare const SessionRevokeInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
85
+ session_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
86
+ }, {
87
+ session_id: string;
88
+ }, "object", {
89
+ session_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">, 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">)[]> & {
90
+ readonly '~types'?: {
91
+ readonly input: string;
92
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
93
+ } | undefined;
94
+ };
95
+ }>;
96
+ export type SessionRevokeInput = Infer<typeof SessionRevokeInput>;
35
97
  /** Output for `account_session_revoke`. `revoked` is `false` for IDOR misses. */
36
98
  export declare const SessionRevokeOutput: z.ZodObject<{
37
99
  ok: z.ZodLiteral<true>;
@@ -159,13 +221,30 @@ export declare const account_verify_action_spec: {
159
221
  };
160
222
  side_effects: false;
161
223
  input: z.ZodVoid;
162
- output: z.ZodObject<{
163
- id: 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>>;
164
- username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
165
- email: z.ZodNullable<z.ZodString>;
166
- email_verified: z.ZodBoolean;
167
- created_at: z.ZodString;
168
- }, z.core.$strict>;
224
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
225
+ email: string | null;
226
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
227
+ created_at: string;
228
+ username: string;
229
+ email_verified: boolean;
230
+ }, {
231
+ email: string | null;
232
+ id: string;
233
+ created_at: string;
234
+ username: string;
235
+ email_verified: boolean;
236
+ }, "object", {
237
+ 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">)[]> & {
238
+ readonly '~types'?: {
239
+ readonly input: string;
240
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
241
+ } | undefined;
242
+ };
243
+ 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>>>;
244
+ email: 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").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
245
+ email_verified: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
246
+ created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
247
+ }>;
169
248
  async: true;
170
249
  description: string;
171
250
  };
@@ -179,15 +258,65 @@ export declare const account_session_list_action_spec: {
179
258
  };
180
259
  side_effects: false;
181
260
  input: z.ZodVoid;
182
- output: z.ZodObject<{
183
- sessions: z.ZodArray<z.ZodObject<{
184
- id: z.core.$ZodBranded<z.ZodString, "SessionId", "out">;
185
- account_id: 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>>;
186
- created_at: z.ZodString;
187
- expires_at: z.ZodString;
188
- is_current: z.ZodBoolean;
189
- }, z.core.$strict>>;
190
- }, z.core.$strict>;
261
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
262
+ sessions: {
263
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
264
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
265
+ created_at: string;
266
+ expires_at: string;
267
+ is_current: boolean;
268
+ }[];
269
+ }, {
270
+ sessions: {
271
+ id: string;
272
+ account_id: string;
273
+ created_at: string;
274
+ expires_at: string;
275
+ is_current: boolean;
276
+ }[];
277
+ }, "object", {
278
+ sessions: import("@fuzdev/fuz_schema/schema.ts").Schema<{
279
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
280
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
281
+ created_at: string;
282
+ expires_at: string;
283
+ is_current: boolean;
284
+ }[], {
285
+ id: string;
286
+ account_id: string;
287
+ created_at: string;
288
+ expires_at: string;
289
+ is_current: boolean;
290
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
291
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
292
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
293
+ created_at: string;
294
+ expires_at: string;
295
+ is_current: boolean;
296
+ }, {
297
+ id: string;
298
+ account_id: string;
299
+ created_at: string;
300
+ expires_at: string;
301
+ is_current: boolean;
302
+ }, "object", {
303
+ id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">, 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">)[]> & {
304
+ readonly '~types'?: {
305
+ readonly input: string;
306
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
307
+ } | undefined;
308
+ };
309
+ account_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">)[]> & {
310
+ readonly '~types'?: {
311
+ readonly input: string;
312
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
313
+ } | undefined;
314
+ };
315
+ created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
316
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
317
+ is_current: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
318
+ }>>;
319
+ }>;
191
320
  async: true;
192
321
  description: string;
193
322
  };
@@ -201,9 +330,18 @@ export declare const account_session_revoke_action_spec: {
201
330
  credential_types: string[];
202
331
  };
203
332
  side_effects: true;
204
- input: z.ZodObject<{
205
- session_id: z.core.$ZodBranded<z.ZodString, "SessionId", "out">;
206
- }, z.core.$strict>;
333
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
334
+ session_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
335
+ }, {
336
+ session_id: string;
337
+ }, "object", {
338
+ session_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">, 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">)[]> & {
339
+ readonly '~types'?: {
340
+ readonly input: string;
341
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
342
+ } | undefined;
343
+ };
344
+ }>;
207
345
  output: z.ZodObject<{
208
346
  ok: z.ZodLiteral<true>;
209
347
  revoked: z.ZodBoolean;
@@ -1 +1 @@
1
- {"version":3,"file":"account_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/account_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAON,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAMtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAW3E,6EAA6E;AAC7E,eAAO,MAAM,WAAW,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AUF,CAAC;AAEtC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUR,CAAC;AAKtC,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUV,CAAC;AAGtC,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;CAUd,CAAC;AAEtC;;;;;;;;;GASG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWR,CAAC;AAEtC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;CAUN,CAAC;AAGtC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUR,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,yBAAyB,CAQrE,CAAC"}
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import { z } from 'zod';
11
11
  import { meta } from '@fuzdev/fuz_schema/meta.ts';
12
- import { boolean, literal, object, pipe, regex, string } from '@fuzdev/fuz_schema/schema.ts';
12
+ import { array, boolean, literal, object, pipe, regex, string } from '@fuzdev/fuz_schema/schema.ts';
13
13
  import { bounded_string } from '../primitive_schemas.js';
14
14
  import { TokenScopeInput } from './token_scope.js';
15
15
  import { TokenLifetimeInput } from './token_lifetime.js';
@@ -20,13 +20,16 @@ import { API_TOKEN_ID_REGEX, ApiTokenId } from './api_token.js';
20
20
  export const VerifyInput = z.void();
21
21
  /** Input for `account_session_list`. No parameters. */
22
22
  export const SessionListInput = z.void();
23
- /** Output for `account_session_list`. */
24
- export const SessionListOutput = z.strictObject({
25
- sessions: z.array(AuthSessionJson)
23
+ /** Output for `account_session_list`, a `@fuzdev/fuz_schema` schema. */
24
+ export const SessionListOutput = object({
25
+ sessions: array(AuthSessionJson)
26
26
  });
27
- /** Input for `account_session_revoke`. `session_id` is the blake3 hash. */
28
- export const SessionRevokeInput = z.strictObject({
29
- session_id: SessionId.meta({ description: 'Session id (blake3 hash) to revoke.' })
27
+ /**
28
+ * Input for `account_session_revoke`, a `@fuzdev/fuz_schema` schema.
29
+ * `session_id` is the blake3 hash.
30
+ */
31
+ export const SessionRevokeInput = object({
32
+ session_id: meta(SessionId, { description: 'Session id (blake3 hash) to revoke.' })
30
33
  });
31
34
  /** Output for `account_session_revoke`. `revoked` is `false` for IDOR misses. */
32
35
  export const SessionRevokeOutput = z.strictObject({