@fuzdev/fuz_app 0.161.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 (63) hide show
  1. package/dist/auth/CLAUDE.md +16 -8
  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/admin_action_specs.d.ts +1753 -240
  12. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  13. package/dist/auth/admin_action_specs.js +29 -25
  14. package/dist/auth/audit_emitter.d.ts +8 -3
  15. package/dist/auth/audit_emitter.d.ts.map +1 -1
  16. package/dist/auth/audit_emitter.js +32 -9
  17. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  18. package/dist/auth/audit_log_queries.js +4 -3
  19. package/dist/auth/audit_log_schema.d.ts +786 -259
  20. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  21. package/dist/auth/audit_log_schema.js +188 -201
  22. package/dist/auth/audit_log_schema_fuz.d.ts +17 -3
  23. package/dist/auth/audit_log_schema_fuz.d.ts.map +1 -1
  24. package/dist/auth/audit_log_schema_fuz.js +17 -4
  25. package/dist/auth/credential_type_schema.d.ts +1 -1
  26. package/dist/auth/invite_schema.d.ts +98 -26
  27. package/dist/auth/invite_schema.d.ts.map +1 -1
  28. package/dist/auth/invite_schema.js +21 -14
  29. package/dist/auth/migrations.d.ts.map +1 -1
  30. package/dist/auth/migrations.js +27 -0
  31. package/dist/auth/role_grant_offer_action_specs.d.ts +72 -72
  32. package/dist/auth/role_grant_offer_notifications.d.ts +60 -60
  33. package/dist/auth/role_grant_offer_schema.d.ts +6 -6
  34. package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
  35. package/dist/auth/role_grant_offer_schema.js +8 -8
  36. package/dist/dev/setup.d.ts +14 -7
  37. package/dist/dev/setup.d.ts.map +1 -1
  38. package/dist/dev/setup.js +11 -6
  39. package/dist/primitive_schemas.d.ts +1 -4
  40. package/dist/primitive_schemas.d.ts.map +1 -1
  41. package/dist/primitive_schemas.js +1 -5
  42. package/dist/primitive_schemas_fuz.d.ts +36 -2
  43. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  44. package/dist/primitive_schemas_fuz.js +34 -3
  45. package/dist/testing/CLAUDE.md +7 -3
  46. package/dist/testing/app_server.d.ts +3 -1
  47. package/dist/testing/app_server.d.ts.map +1 -1
  48. package/dist/testing/app_server.js +6 -2
  49. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  50. package/dist/testing/audit_drift_guard.js +12 -13
  51. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  52. package/dist/testing/cross_backend/identity_parity.js +4 -2
  53. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  54. package/dist/testing/cross_backend/session_cap.js +4 -3
  55. package/dist/testing/db_entities.d.ts +3 -1
  56. package/dist/testing/db_entities.d.ts.map +1 -1
  57. package/dist/testing/db_entities.js +4 -2
  58. package/dist/testing/integration.d.ts.map +1 -1
  59. package/dist/testing/integration.js +3 -2
  60. package/dist/zod.d.ts +2 -1
  61. package/dist/zod.d.ts.map +1 -1
  62. package/dist/zod.js +6 -2
  63. package/package.json +1 -1
@@ -56,7 +56,7 @@ Cross-cutting notes that don't live on any single symbol:
56
56
 
57
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
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`).
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
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
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
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.
@@ -66,10 +66,10 @@ Convention — `*_schema.ts` holds a domain's schemas, Zod or `@fuzdev/fuz_schem
66
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".
67
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.
68
68
  - `auth/auth_ddl.ts` — `CREATE TABLE` / index / seed strings for the core identity tables.
69
- - `auth/audit_log_schema.ts` — `AUDIT_EVENT_TYPES` (the builtin event types), `AuditEventType` / `AuditEventTypeName` (`AUDIT_EVENT_TYPE_NAME_REGEX` under `NAME_LENGTH_MAX`), `audit_metadata_schemas`, `AuditLogEvent`, `AuditLogInput`, `AuditLogConfig`, `create_audit_log_config`.
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), over `audit_log_schema.ts`'s grammar and messages (`AUDIT_EVENT_TYPE_NAME_LENGTH_MESSAGE`, `AUDIT_EVENT_TYPE_NAME_PATTERN_MESSAGE`): 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
+ - `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.
71
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).
72
- - `auth/invite_schema.ts` — `Invite`, `CreateInviteInput`.
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
73
  - `auth/app_settings_schema.ts` — `AppSettings` (single-row via `CHECK (id = 1)`) and its `@fuzdev/fuz_schema` schemas `AppSettingsJson` and `AppSettingsWithUsernameJson`.
74
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.
75
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`.
@@ -542,8 +542,13 @@ TSDoc. The pattern that spans emit sites:
542
542
  ### Audit event extensibility
543
543
 
544
544
  Consumers extend the closed `AUDIT_EVENT_TYPES` enum via
545
- `create_audit_log_config({extra_events})` — Zod schema or `null` per type;
546
- 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
547
552
  DB column is `TEXT NOT NULL` (no enum), so consumer types round-trip through
548
553
  list queries, the `audit_log_list` RPC, and SSE identically to builtins.
549
554
 
@@ -932,8 +937,11 @@ narrowed token that names it: the REST probe is the `surface:account_verify`
932
937
  rule-3 surface, refused to every narrowed token, and `GET /status` answers one
933
938
  as the anonymous caller.
934
939
 
935
- `session_id` validates as `Blake3Hash`; `token_id` as `ApiTokenId`
936
- (`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.
937
945
 
938
946
  Audit events via `deps.audit.emit` with `ip: ctx.client_ip`:
939
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,WAAW,CAAC;AACpC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,uDAAuD;AACvD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CA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M,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({