@fuzdev/fuz_app 0.168.1 → 0.169.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/actions/CLAUDE.md +1 -1
  2. package/dist/actions/action_codegen.d.ts +9 -7
  3. package/dist/actions/action_codegen.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.js +20 -15
  5. package/dist/actions/action_event_data.d.ts +16 -16
  6. package/dist/auth/account_action_specs.d.ts +11 -11
  7. package/dist/auth/account_action_specs.js +1 -1
  8. package/dist/auth/account_route_schema.d.ts +18 -18
  9. package/dist/auth/account_route_schema.js +1 -1
  10. package/dist/auth/account_routes.js +1 -1
  11. package/dist/auth/account_schema.d.ts +38 -40
  12. package/dist/auth/account_schema.d.ts.map +1 -1
  13. package/dist/auth/account_schema.js +7 -8
  14. package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
  15. package/dist/auth/actor_lookup_action_specs.js +1 -1
  16. package/dist/auth/actor_search_action_specs.d.ts +6 -6
  17. package/dist/auth/actor_search_action_specs.js +1 -1
  18. package/dist/auth/admin_action_specs.d.ts +166 -166
  19. package/dist/auth/admin_action_specs.js +1 -1
  20. package/dist/auth/app_settings_schema.d.ts +3 -3
  21. package/dist/auth/app_settings_schema.d.ts.map +1 -1
  22. package/dist/auth/app_settings_schema.js +1 -1
  23. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  24. package/dist/auth/audit_log_route_schema.js +1 -1
  25. package/dist/auth/audit_log_schema.d.ts +61 -61
  26. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  27. package/dist/auth/audit_log_schema.js +1 -1
  28. package/dist/auth/bootstrap_route_schema.d.ts +4 -4
  29. package/dist/auth/bootstrap_route_schema.js +1 -1
  30. package/dist/auth/cell_action_specs.d.ts +424 -424
  31. package/dist/auth/cell_action_specs.js +1 -1
  32. package/dist/auth/cell_audit_action_specs.d.ts +14 -14
  33. package/dist/auth/cell_audit_action_specs.js +1 -1
  34. package/dist/auth/cell_audit_metadata.d.ts +8 -8
  35. package/dist/auth/cell_audit_metadata.js +1 -1
  36. package/dist/auth/cell_field_action_specs.d.ts +55 -55
  37. package/dist/auth/cell_field_action_specs.js +1 -1
  38. package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
  39. package/dist/auth/cell_field_audit_metadata.js +1 -1
  40. package/dist/auth/cell_grant_action_specs.d.ts +61 -61
  41. package/dist/auth/cell_grant_action_specs.js +1 -1
  42. package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
  43. package/dist/auth/cell_grant_audit_metadata.js +1 -1
  44. package/dist/auth/cell_item_action_specs.d.ts +76 -76
  45. package/dist/auth/cell_item_action_specs.js +1 -1
  46. package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
  47. package/dist/auth/cell_item_audit_metadata.js +1 -1
  48. package/dist/auth/invite_schema.d.ts +11 -11
  49. package/dist/auth/invite_schema.d.ts.map +1 -1
  50. package/dist/auth/invite_schema.js +1 -1
  51. package/dist/auth/name_schema.js +1 -1
  52. package/dist/auth/password.js +1 -1
  53. package/dist/auth/role_grant_offer_action_specs.d.ts +182 -182
  54. package/dist/auth/role_grant_offer_action_specs.js +1 -1
  55. package/dist/auth/role_grant_offer_notifications.d.ts +107 -107
  56. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  57. package/dist/auth/role_grant_offer_notifications.js +1 -1
  58. package/dist/auth/role_grant_offer_schema.d.ts +9 -9
  59. package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
  60. package/dist/auth/role_grant_offer_schema.js +1 -1
  61. package/dist/auth/self_service_role_action_specs.d.ts +2 -2
  62. package/dist/auth/self_service_role_action_specs.js +1 -1
  63. package/dist/auth/signup_route_schema.d.ts +2 -2
  64. package/dist/auth/signup_route_schema.js +1 -1
  65. package/dist/auth/token_scope.d.ts +8 -8
  66. package/dist/db/file_fact_url.d.ts +1 -1
  67. package/dist/http/CLAUDE.md +7 -7
  68. package/dist/http/auth_shape.d.ts +15 -32
  69. package/dist/http/auth_shape.d.ts.map +1 -1
  70. package/dist/http/auth_shape.js +31 -38
  71. package/dist/http/db_routes.d.ts +1 -1
  72. package/dist/http/db_routes.d.ts.map +1 -1
  73. package/dist/http/db_routes.js +1 -1
  74. package/dist/http/error_schemas.d.ts +18 -18
  75. package/dist/http/jsonrpc.d.ts +11 -11
  76. package/dist/http/schema_helpers.d.ts +2 -2
  77. package/dist/http/schema_helpers.d.ts.map +1 -1
  78. package/dist/http/schema_helpers.js +8 -7
  79. package/dist/primitive_schemas.d.ts +173 -115
  80. package/dist/primitive_schemas.d.ts.map +1 -1
  81. package/dist/primitive_schemas.js +134 -158
  82. package/dist/schema_issues.d.ts +10 -7
  83. package/dist/schema_issues.d.ts.map +1 -1
  84. package/dist/schema_issues.js +38 -8
  85. package/dist/server/serve_fact_route.js +1 -1
  86. package/dist/server/surface_route.js +1 -1
  87. package/dist/testing/CLAUDE.md +3 -3
  88. package/dist/testing/cross_backend/conformance_case.d.ts +96 -114
  89. package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
  90. package/dist/testing/cross_backend/conformance_case.js +0 -256
  91. package/dist/testing/cross_backend/fact_serving.js +1 -1
  92. package/dist/testing/cross_backend/setup.d.ts +1 -1
  93. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  94. package/dist/testing/cross_backend/setup.js +3 -4
  95. package/dist/testing/cross_backend/testing_origin_check.d.ts +8 -8
  96. package/dist/testing/cross_backend/testing_reset_actions.d.ts +608 -201
  97. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  98. package/dist/testing/cross_backend/testing_reset_actions.js +46 -55
  99. package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
  100. package/dist/testing/cross_backend/ws_outbound_overflow.js +35 -0
  101. package/dist/testing/rpc_helpers.d.ts +1 -1
  102. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  103. package/dist/testing/rpc_helpers.js +0 -1
  104. package/dist/testing/schema_generators.js +1 -13
  105. package/dist/testing/schema_introspect.d.ts +438 -78
  106. package/dist/testing/schema_introspect.d.ts.map +1 -1
  107. package/dist/testing/schema_introspect.js +26 -26
  108. package/dist/testing/transports/bootstrap.d.ts +1 -1
  109. package/dist/testing/transports/bootstrap.d.ts.map +1 -1
  110. package/dist/testing/transports/bootstrap.js +1 -1
  111. package/dist/ui/BootstrapForm.svelte +1 -2
  112. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  113. package/dist/ui/SignupForm.svelte +1 -2
  114. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  115. package/dist/ui/admin_accounts_state.svelte.d.ts +5 -5
  116. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  117. package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
  118. package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
  119. package/dist/ui/admin_sessions_state.svelte.d.ts +2 -2
  120. package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
  121. package/dist/ui/role_grant_offers_state.svelte.d.ts +1 -1
  122. package/dist/zod.d.ts +18 -3
  123. package/dist/zod.d.ts.map +1 -1
  124. package/dist/zod.js +26 -3
  125. package/dist/zod_schemas.d.ts +100 -0
  126. package/dist/zod_schemas.d.ts.map +1 -0
  127. package/dist/zod_schemas.js +157 -0
  128. package/package.json +3 -3
  129. package/dist/primitive_schemas_fuz.d.ts +0 -178
  130. package/dist/primitive_schemas_fuz.d.ts.map +0 -1
  131. package/dist/primitive_schemas_fuz.js +0 -149
@@ -1,26 +1,26 @@
1
1
  /**
2
- * Reusable validator-schema primitives — `bounded_string`, `Username`,
3
- * `Email`, the branded `Uuid` and `Datetime` with their factories, and the
4
- * hash schema `FactHashSchema`. Lives at
5
- * the top level (not inside `auth/` or `http/`) because these shapes don't
6
- * depend on or imply any domain — accounts hold a username and email, but
7
- * invites, password resets, cells, and other surfaces all reach for the same
8
- * primitives without going through auth.
9
- *
10
- * Split out from `auth/account_schema.ts` so the auth module shrinks to
11
- * entity types + client-safe JSON shapes (its real responsibility) and
12
- * non-auth consumers can import these primitives without dragging the
13
- * auth domain along. Future cross-domain primitives (phone, slug) land
14
- * here too; a URL is `Url` from `@fuzdev/fuz_util/url.ts`.
2
+ * Reusable validator-schema primitives, in `@fuzdev/fuz_schema` —
3
+ * `bounded_string`, `Username` with `UsernameCanonical` and
4
+ * `UsernameProvided`, `Email`, the branded `Uuid` with its factory,
5
+ * `Timestamp`, the hash schemas `FactHashSchema` and `Blake3Hash`, and
6
+ * `ActingActor`. Lives at the top level (not inside `auth/` or `http/`)
7
+ * because these shapes don't depend on or imply any domain — accounts hold a
8
+ * username and email, but invites, password resets, cells, and other surfaces
9
+ * all reach for the same primitives without going through auth. A URL is
10
+ * `Url` from `@fuzdev/fuz_util/url.ts`.
11
+ *
12
+ * The Zod forms a consumer's Zod schema embeds — `ZodUuid`,
13
+ * `ZodUuidWithDefault`, `ZodFactHashSchema`, `ZodUsername`,
14
+ * `ZodActingActor` — are in `zod_schemas.ts`, built on the grammars here and
15
+ * sharing their output types, so a value parsed by either goes where the
16
+ * other's is taken.
15
17
  *
16
18
  * Client-safe: nothing here imports `@fuzdev/blake3-wasm`, so wire schemas
17
19
  * that validate a hash don't pull the WASM binary into a bundle.
18
20
  *
19
21
  * @module
20
22
  */
21
- import { z } from 'zod';
22
- import type { Branded } from '@fuzdev/fuz_schema/schema.ts';
23
- import { type FactHash } from '@fuzdev/fuz_util/hash_schemas.ts';
23
+ import { string, type Infer, type PipeSchema } from '@fuzdev/fuz_schema/schema.ts';
24
24
  /** Length bounds for `bounded_string`, in UTF-16 code units. */
25
25
  export interface BoundedStringOptions {
26
26
  /** Shortest string admitted. Omit for no lower bound. */
@@ -34,27 +34,15 @@ export interface BoundedStringOptions {
34
34
  * A string schema whose length is bounded in UTF-16 code units — what
35
35
  * `String.length` measures, and what the Rust spine counts
36
36
  * (`encode_utf16().count()`), so an astral-plane character costs two on both.
37
- * Every `.min()` / `.max()` length bound on a wire string in the package is
38
- * built here, bar a bare `.min(1)`, which reads the same in either count.
39
- *
40
- * Zod's `.min()` / `.max()` alone don't pin the unit: depending on the
41
- * installed Zod they count code units or Unicode code points, and the peer
42
- * range admits both. The schema still carries them — they are what puts
43
- * `minLength` / `maxLength` in the generated JSON Schema — and a check beside
44
- * them settles the verdict on `String.length`: it adds the over-`max` or
45
- * under-`min` issue when Zod raised none, and withdraws one Zod raised for a
46
- * string that is within the bound in units. The issue it adds has the fields
47
- * of Zod's own and, like Zod's, lets the checks chained after it run, so a
48
- * refusal reads the same whichever count Zod used.
49
- *
50
- * Returns a plain `ZodString`, so format checks, `.brand()`, `.nullish()` and
51
- * `.meta()` chain as usual. Don't chain a further `.min()` / `.max()` — pass
52
- * the bound here.
53
- *
54
- * @param options - the bounds, in UTF-16 code units
37
+ * fuz_schema's `min_length` / `max_length` read `String.length`. Every length
38
+ * bound on a wire string in the package is built here. Its JSON Schema
39
+ * carries `minLength` / `maxLength`; `max_message` replaces fuz_schema's
40
+ * message on the over-`max` issue.
41
+ *
42
+ * @param options - the bounds, in UTF-16 code units, and the max message
55
43
  * @returns the bounded string schema
56
44
  */
57
- export declare const bounded_string: (options: BoundedStringOptions) => z.ZodString;
45
+ export declare const bounded_string: (options: BoundedStringOptions) => PipeSchema<string, typeof string>;
58
46
  /** Minimum username length (must have start + middle + end characters). */
59
47
  export declare const USERNAME_LENGTH_MIN = 3;
60
48
  /** Maximum username length (matches GitHub's limit). The grammar is ASCII, so units and characters agree. */
@@ -71,14 +59,48 @@ export declare const USERNAME_PROVIDED_LENGTH_MAX = 255;
71
59
  * Username for account creation — starts with letter, alphanumeric/dash/underscore middle, ends with alphanumeric. No @ or . allowed.
72
60
  *
73
61
  * Canonicalized to lowercase at parse time. The regex rejects whitespace
74
- * outright, so `.trim()` is unnecessary here. Storage is canonical across
75
- * every creation site (bootstrap, signup, admin-create, invite acceptance)
76
- * because the schema is the single source of truth — eliminates the
77
- * per-caller `trim().toLowerCase()` ritual and keeps the
78
- * `LOWER(username) = LOWER($1)` lookup contract simple.
62
+ * outright, so no trim is needed. Storage is canonical across every creation
63
+ * site (bootstrap, signup, admin-create, invite acceptance) because the
64
+ * schema is the single source of truth — eliminates the per-caller
65
+ * `trim().toLowerCase()` ritual and keeps the `LOWER(username) = LOWER($1)`
66
+ * lookup contract simple. A string outside the bounds and off the grammar
67
+ * gets the length issue alone.
68
+ */
69
+ export declare const Username: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
70
+ export type Username = Infer<typeof Username>;
71
+ /**
72
+ * A username's canonical grammar, `USERNAME_REGEX` in lowercase: a lowercase
73
+ * letter, then lowercase letters, digits, `_` or `-`, ending in a lowercase
74
+ * letter or digit. What `Username` outputs, and what an `account` row holds
75
+ * (its `account_username_lowercase` CHECK).
76
+ */
77
+ export declare const USERNAME_CANONICAL_REGEX: RegExp;
78
+ /**
79
+ * A username as an account row holds it, the `username` of an output: the
80
+ * bounds of `Username` and `USERNAME_CANONICAL_REGEX`, no transform. A
81
+ * username in any other case fails, where `Username` lowercases it.
79
82
  */
80
- export declare const Username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
81
- export type Username = z.infer<typeof Username>;
83
+ export declare const UsernameCanonical: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
84
+ export type UsernameCanonical = Infer<typeof UsernameCanonical>;
85
+ /**
86
+ * Username submitted for login or lookup — minimal validation, for
87
+ * forward-compatibility if the creation grammar changes: at least one and at
88
+ * most `USERNAME_PROVIDED_LENGTH_MAX` UTF-16 code units, measured before
89
+ * trimming, holding a character that isn't whitespace.
90
+ *
91
+ * Canonicalized to `.trim().toLowerCase()` at parse time, so login's
92
+ * per-account rate-limit key and its lookup see one value whatever the casing
93
+ * or surrounding whitespace, as `Username` canonicalizes what is stored.
94
+ *
95
+ * A whitespace-only identifier is refused, not canonicalized to `""` and left
96
+ * to fall through to a lookup-miss 401: an empty identifier is malformed
97
+ * input, not a wrong credential, and the Rust spine's `account_login` refuses
98
+ * it too. JS `\s` is exactly the set `trim` removes (ECMA-262's WhiteSpace and
99
+ * LineTerminator), so the `regex` ahead of the transform refuses what would
100
+ * trim to nothing.
101
+ */
102
+ export declare const UsernameProvided: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
103
+ export type UsernameProvided = Infer<typeof UsernameProvided>;
82
104
  /**
83
105
  * Maximum email length in **bytes** — RFC 5321 §4.5.3.1.3 path-length limit
84
106
  * (the limit is octets). `Email` bounds the UTF-8 byte length, matching the
@@ -107,11 +129,11 @@ export declare const EMAIL_LENGTH_MAX = 254;
107
129
  * language, is quadratic: it tries every `.` as the split.
108
130
  */
109
131
  export declare const EMAIL_REGEX: RegExp;
110
- /** The message of an email over `EMAIL_LENGTH_MAX` bytes, on either schema library's `Email`. */
132
+ /** The message of an email over `EMAIL_LENGTH_MAX` bytes, on `Email`. */
111
133
  export declare const EMAIL_LENGTH_MESSAGE = "Email must be at most 254 bytes";
112
134
  /**
113
- * Whether `s` is at most `EMAIL_LENGTH_MAX` bytes in UTF-8, the bound both
114
- * `Email` schemas check.
135
+ * Whether `s` is at most `EMAIL_LENGTH_MAX` bytes in UTF-8, the bound `Email`
136
+ * checks.
115
137
  *
116
138
  * `s.length` (UTF-16 units) is a cheap upper bound that short-circuits the
117
139
  * `encode` on absurd inputs: a valid (<= 254-byte) address is necessarily
@@ -124,85 +146,121 @@ export declare const EMAIL_LENGTH_MESSAGE = "Email must be at most 254 bytes";
124
146
  export declare const is_email_within_length_max: (s: string) => boolean;
125
147
  /**
126
148
  * Email validation. Every current consumer pairs it with `Username` (signup,
127
- * invites, audit log), so the two live together with the other Zod
128
- * primitives.
149
+ * invites, audit log), so the two live together with the other primitives.
129
150
  *
130
151
  * Deliberately permissive — a structural shape check (`EMAIL_REGEX` plus the
131
152
  * `EMAIL_LENGTH_MAX` byte bound), not RFC 5322 conformance or deliverability
132
- * (real delivery is proven by a confirmation email). Replaces Zod's stricter
133
- * `z.email()` so the rule is one explicit regex the Rust spine's
134
- * `is_valid_email` mirrors; `z.email()`'s internal regex (2+ char TLD, no
135
- * consecutive dots) was brittle to keep in cross-impl parity and rejected
136
- * addresses like `a@b.c`. The length bound is the UTF-8 **byte** count (RFC
137
- * 5321 measures octets), so a multibyte address is bounded identically to the
138
- * Rust spine's `s.len()` rather than diverging on JS's UTF-16 `.length`. No
139
- * transform: case is preserved and surrounding whitespace is rejected (not
140
- * trimmed), so storage is verbatim and the case-insensitive lookup rides the
141
- * DB-side `LOWER(email)`.
142
- *
143
- * The byte bound runs first and aborts, so an address past it gets the
144
- * length issue alone and is never read by the regex.
145
- */
146
- export declare const Email: z.ZodString;
147
- export type Email = z.infer<typeof Email>;
153
+ * (real delivery is proven by a confirmation email). The rule is one explicit
154
+ * regex the Rust spine's `is_valid_email` mirrors, looser than Zod's
155
+ * `z.email()` (2+ char TLD, no consecutive dots), which rejected addresses
156
+ * like `a@b.c`. The length bound is the UTF-8 **byte** count (RFC 5321
157
+ * measures octets), so a multibyte address is bounded identically to the
158
+ * Rust spine's `s.len()`. No transform: case is preserved and surrounding
159
+ * whitespace is rejected (not trimmed), so storage is verbatim and the
160
+ * case-insensitive lookup rides the DB-side `LOWER(email)`.
161
+ *
162
+ * The `max_length` ahead of the grammar refuses a string past the bound in
163
+ * UTF-16 code units, which is past it in bytes too, before the regex reads
164
+ * it, and the `check` after it the multibyte address within the units but
165
+ * past the bytes, both with `EMAIL_LENGTH_MESSAGE`. Its JSON Schema carries
166
+ * the bound as `maxLength`.
167
+ */
168
+ export declare const Email: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
169
+ export type Email = Infer<typeof Email>;
148
170
  /** Returns a new random (v4) `Uuid`. */
149
171
  export declare const create_uuid: () => Uuid;
150
172
  /**
151
- * Branded UUID schema. Accepts either case and outputs lowercase — the form
152
- * Postgres renders a `uuid` in and every id the server mints — so a parsed id
153
- * compares equal to the same id read back from the database. The Rust spine
154
- * canonicalizes the same way, and its grammar is this one, the fuz_schema
155
- * twin's in `primitive_schemas_fuz.ts`: `z.uuid()` with the max UUID taken in
156
- * any case. Issues and JSON Schema keep `format: 'uuid'`; only the `pattern`
157
- * differs from a bare `z.uuid()`'s, rendered or on a Zod issue (the wire
158
- * issue drops it).
159
- *
160
- * `pattern` is a `$ZodUUIDDef` field that `z.uuid()` honors (its default
161
- * applies only when none is given) but whose public params type omits it,
162
- * hence the cast on the params.
163
- *
164
- * `.toLowerCase()` rather than `.transform()`: an overwrite keeps the output
165
- * type and stays invisible to `z.toJSONSchema`, where a transform would leave
166
- * no input schema to render.
167
- *
168
- * The output type is fuz_schema's `Branded<string, 'Uuid'>`, the twin's, by a
169
- * cast as on `FactHashSchema`: Zod's `.brand('Uuid')` would output Zod's own
170
- * brand, which a fuz_schema `Uuid` isn't assignable to.
171
- */
172
- export declare const Uuid: z.ZodUUID & z.ZodType<Branded<string, 'Uuid'>, string>;
173
- export type Uuid = z.infer<typeof Uuid>;
173
+ * The UUID grammar of RFC 9562, in either case: five groups of hex digits,
174
+ * 8-4-4-4-12, with a version from 1 to 8 and the RFC's variant, or the nil or
175
+ * the max UUID. It is `z.uuid()`'s own but for the max UUID, which `z.uuid()`
176
+ * spells in lowercase only, where RFC 9562 §4 reads a UUID case-insensitively.
177
+ * The same source as the pattern fuz_schema's `uuid` renders to JSON Schema,
178
+ * which a test holds it to, the `pattern` of `ZodUuid`, and the grammar of
179
+ * the Rust spine's `is_valid_uuid`.
180
+ */
181
+ export declare const UUID_REGEX: RegExp;
182
+ /**
183
+ * Branded UUID schema: a UUID of RFC 9562 in either case, fuz_schema's `uuid`
184
+ * (whose grammar is `UUID_REGEX`), output in lowercase — the form Postgres renders a `uuid` in and every id
185
+ * the server mints — so a parsed id compares equal to the same id read back
186
+ * from the database. The Rust spine canonicalizes the same way. The brand
187
+ * goes outside the `to_lower_case`, which outputs a new string.
188
+ */
189
+ export declare const Uuid: 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<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | 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<"lazy"> | 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<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | 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<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform">)[]> & {
190
+ readonly '~types'?: {
191
+ readonly input: string;
192
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
193
+ } | undefined;
194
+ };
195
+ export type Uuid = Infer<typeof Uuid>;
174
196
  /** `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`. */
175
- export declare const UuidWithDefault: z.ZodDefault<z.ZodUUID & z.ZodType<Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<Branded<string, "Uuid">, string>>>;
176
- export type UuidWithDefault = z.infer<typeof UuidWithDefault>;
177
- /**
178
- * Branded datetime schema, zod's default `z.iso.datetime()`: an RFC 3339 date
179
- * and time in UTC with a real calendar date, `Z` and no offset, and a fraction
180
- * of any length or none. Zod 4.6 requires the seconds; earlier zod 4, which
181
- * the `zod` peer range admits, also takes `HH:MMZ`. fuz_schema's
182
- * `iso_datetime` is this grammar with the seconds required and the fraction
183
- * capped at 9 digits.
184
- */
185
- export declare const Datetime: z.core.$ZodBranded<z.ZodISODateTime, "Datetime", "out">;
186
- export type Datetime = z.infer<typeof Datetime>;
187
- /** Returns an ISO 8601 datetime string for the current time. */
188
- export declare const get_datetime_now: () => Datetime;
189
- /** `Datetime` that defaults to `get_datetime_now()` when the input is `undefined`. */
190
- export declare const DatetimeNow: z.ZodDefault<z.core.$ZodBranded<z.ZodISODateTime, "Datetime", "out">>;
191
- export type DatetimeNow = z.infer<typeof DatetimeNow>;
192
- /**
193
- * Wire-form schema for a `blake3:`-prefixed fact hash, whose output is
197
+ export declare const UuidWithDefault: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string | undefined, "with_default_fn", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultFnDef<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<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | 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<"lazy"> | 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<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | 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<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform">)[]> & {
198
+ readonly '~types'?: {
199
+ readonly input: string;
200
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
201
+ } | undefined;
202
+ }>>;
203
+ export type UuidWithDefault = Infer<typeof UuidWithDefault>;
204
+ /**
205
+ * A timestamp on the wire: a date and time of RFC 3339 in UTC, fuz_schema's
206
+ * `iso_datetime`, which both spines' `YYYY-MM-DDTHH:MM:SSZ`
207
+ * (`iso8601_timestamp_column`) and a `toISOString()` stamp satisfy. Not
208
+ * branded, unlike the Zod `Datetime` of `zod_schemas.ts`.
209
+ */
210
+ export declare const Timestamp: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
211
+ export type Timestamp = Infer<typeof Timestamp>;
212
+ /**
213
+ * A `blake3:`-prefixed fact hash on the wire: `FACT_HASH_EXACT`, its output
194
214
  * `FactHash` from `@fuzdev/fuz_util/hash_schemas.ts` — the type
195
- * `fact_hash_bytes`, `fact_hash_stream`, and `FactStore` use — so a parsed
215
+ * `fact_hash_bytes`, `fact_hash_stream`, and `FactStore` take — so a parsed
196
216
  * value passes straight to them. Client-side (cell payloads) and server-side
197
- * (DB-row hashes) consumers reuse this same schema.
217
+ * (DB-row hashes) consumers reuse this same schema. Its JSON Schema is the
218
+ * `pattern`.
219
+ */
220
+ export declare const FactHashSchema: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "FactHash">, 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<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | 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<"lazy"> | 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<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | 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<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform">)[]> & {
221
+ readonly '~types'?: {
222
+ readonly input: string;
223
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
224
+ } | undefined;
225
+ };
226
+ /** A BLAKE3 hex hash's grammar: 64 lowercase hex characters (256-bit output). */
227
+ export declare const BLAKE3_HASH_REGEX: RegExp;
228
+ /** The message of a string off `BLAKE3_HASH_REGEX`. */
229
+ export declare const BLAKE3_HASH_MESSAGE = "Expected a 64-character lowercase hex blake3 hash";
230
+ /**
231
+ * A BLAKE3 hex hash: `BLAKE3_HASH_REGEX`, whose issue carries
232
+ * `BLAKE3_HASH_MESSAGE`. A value that is no string gets fuz_schema's message.
233
+ */
234
+ export declare const Blake3Hash: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
235
+ export type Blake3Hash = Infer<typeof Blake3Hash>;
236
+ /** The `description` of `ActingActor`, which `ZodActingActor` carries too. */
237
+ export declare const ACTING_ACTOR_DESCRIPTION = "Actor on the authenticated account that this request acts as. Omit on single-actor accounts; required on multi-actor.";
238
+ /**
239
+ * `acting` field shared by every input that needs the caller's acting actor.
240
+ * Declaring `acting: ActingActor` on a route or action input signals to the
241
+ * dispatcher's authorization phase to resolve an actor against the
242
+ * authenticated account: it runs `resolve_acting_actor`, builds the
243
+ * actor-bound `RequestContext`, and loads role_grants before auth guards fire.
244
+ *
245
+ * Resolution rules: omitted + 1 actor → use it; omitted + multiple actors →
246
+ * `actor_required` with the available list; supplied + on the account → use
247
+ * it; supplied + foreign actor → `actor_not_on_account`.
248
+ *
249
+ * Account-grain routes — input doesn't declare `acting` and auth doesn't
250
+ * require role_grants — skip resolution entirely; their `RequestContext.actor`
251
+ * is `null` and the audit envelope's `actor_id` stays null.
198
252
  *
199
- * The output type is a cast over a plain regex check: Zod's `.brand('FactHash')`
200
- * would output Zod's own brand, which doesn't fit fuz_util's fuz_schema-branded
201
- * `FactHash`, and a `.transform` or `z.custom` that produced the right type
202
- * makes `z.toJSONSchema` throw, as neither can be represented in JSON Schema.
203
- * The cast costs nothing at runtime and keeps the `ZodString` API and the
204
- * `pattern` in the generated JSON Schema, so `.meta()`, `.nullable()`, and
205
- * `z.array()` compose as before.
253
+ * Paired with `RouteAuth` (`http/auth_shape.ts`) by registry-time invariant
254
+ * 2: `auth.actor !== 'none'` ⟺ input (or query, on REST GETs) declares
255
+ * `acting?: ActingActor`. The dispatcher finds it by reference
256
+ * (`input_schema_declares_acting`), so an input declares this export, not a
257
+ * copy of it; a Zod input declares `ZodActingActor` (`zod_schemas.ts`).
206
258
  */
207
- export declare const FactHashSchema: z.ZodString & z.ZodType<FactHash, string>;
259
+ export declare const ActingActor: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<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<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | 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<"lazy"> | 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<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | 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<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform">)[]> & {
260
+ readonly '~types'?: {
261
+ readonly input: string;
262
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
263
+ } | undefined;
264
+ }>>;
265
+ export type ActingActor = Infer<typeof ActingActor>;
208
266
  //# sourceMappingURL=primitive_schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitive_schemas.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/primitive_schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIlF,gEAAgE;AAChE,MAAM,WAAW,oBAAoB;IACpC,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,oBAAoB,KAAG,CAAC,CAAC,SA+ChE,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,6GAA6G;AAC7G,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAwC,CAAC;AAEpE,gNAAgN;AAChN,eAAO,MAA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