@fuzdev/fuz_app 0.168.1 → 0.170.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.
- package/dist/actions/CLAUDE.md +17 -19
- package/dist/actions/action_codegen.d.ts +32 -23
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +101 -80
- package/dist/actions/action_event.d.ts +0 -8
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event.js +7 -6
- package/dist/actions/action_event_data.d.ts +18 -18
- package/dist/actions/action_rpc.d.ts +1 -1
- package/dist/actions/action_rpc.js +1 -1
- package/dist/actions/action_spec.d.ts +8 -10
- package/dist/actions/action_spec.d.ts.map +1 -1
- package/dist/actions/action_spec.js +1 -1
- package/dist/actions/action_types.d.ts +4 -4
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/action_types.js +2 -2
- package/dist/actions/broadcast_api.d.ts +2 -2
- package/dist/actions/broadcast_api.js +4 -4
- package/dist/actions/compile_action_registry.d.ts +6 -7
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.js +8 -9
- package/dist/actions/perform_action.d.ts +6 -6
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +11 -10
- package/dist/actions/socket.svelte.d.ts +1 -1
- package/dist/actions/socket.svelte.js +2 -2
- package/dist/auth/CLAUDE.md +11 -11
- package/dist/auth/account_action_specs.d.ts +11 -11
- package/dist/auth/account_action_specs.js +1 -1
- package/dist/auth/account_route_schema.d.ts +18 -18
- package/dist/auth/account_route_schema.js +1 -1
- package/dist/auth/account_routes.js +1 -1
- package/dist/auth/account_schema.d.ts +38 -40
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/account_schema.js +7 -8
- package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
- package/dist/auth/actor_lookup_action_specs.js +1 -1
- package/dist/auth/actor_search_action_specs.d.ts +6 -6
- package/dist/auth/actor_search_action_specs.js +1 -1
- package/dist/auth/admin_action_specs.d.ts +166 -166
- package/dist/auth/admin_action_specs.js +1 -1
- package/dist/auth/app_settings_schema.d.ts +3 -3
- package/dist/auth/app_settings_schema.d.ts.map +1 -1
- package/dist/auth/app_settings_schema.js +1 -1
- package/dist/auth/audit_emitter.d.ts +6 -7
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_emitter.js +11 -22
- package/dist/auth/audit_log_ddl.d.ts +1 -1
- package/dist/auth/audit_log_ddl.js +1 -1
- package/dist/auth/audit_log_queries.d.ts +0 -13
- package/dist/auth/audit_log_queries.d.ts.map +1 -1
- package/dist/auth/audit_log_queries.js +3 -3
- package/dist/auth/audit_log_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_route_schema.js +1 -1
- package/dist/auth/audit_log_schema.d.ts +69 -70
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +2 -2
- package/dist/auth/auth_ddl.d.ts +1 -1
- package/dist/auth/auth_ddl.js +1 -1
- package/dist/auth/bootstrap_route_schema.d.ts +4 -4
- package/dist/auth/bootstrap_route_schema.js +1 -1
- package/dist/auth/cell_action_specs.d.ts +466 -466
- package/dist/auth/cell_action_specs.js +1 -1
- package/dist/auth/cell_actions.d.ts +2 -2
- package/dist/auth/cell_actions.js +5 -5
- package/dist/auth/cell_audit_action_specs.d.ts +14 -14
- package/dist/auth/cell_audit_action_specs.js +1 -1
- package/dist/auth/cell_audit_metadata.d.ts +8 -8
- package/dist/auth/cell_audit_metadata.js +1 -1
- package/dist/auth/cell_field_action_specs.d.ts +55 -55
- package/dist/auth/cell_field_action_specs.js +1 -1
- package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
- package/dist/auth/cell_field_audit_metadata.js +1 -1
- package/dist/auth/cell_grant_action_specs.d.ts +61 -61
- package/dist/auth/cell_grant_action_specs.js +1 -1
- package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
- package/dist/auth/cell_grant_audit_metadata.js +1 -1
- package/dist/auth/cell_item_action_specs.d.ts +76 -76
- package/dist/auth/cell_item_action_specs.js +1 -1
- package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
- package/dist/auth/cell_item_audit_metadata.js +1 -1
- package/dist/auth/invite_schema.d.ts +11 -11
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/invite_schema.js +1 -1
- package/dist/auth/name_schema.js +1 -1
- package/dist/auth/password.js +1 -1
- package/dist/auth/request_context.js +2 -2
- package/dist/auth/role_grant_offer_action_specs.d.ts +182 -182
- package/dist/auth/role_grant_offer_action_specs.js +1 -1
- package/dist/auth/role_grant_offer_ddl.d.ts +1 -1
- package/dist/auth/role_grant_offer_ddl.js +1 -1
- package/dist/auth/role_grant_offer_notifications.d.ts +107 -107
- package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_notifications.js +3 -4
- package/dist/auth/role_grant_offer_schema.d.ts +9 -9
- package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_schema.js +1 -1
- package/dist/auth/self_service_role_action_specs.d.ts +2 -2
- package/dist/auth/self_service_role_action_specs.js +1 -1
- package/dist/auth/self_service_role_actions.d.ts +1 -1
- package/dist/auth/self_service_role_actions.js +1 -1
- package/dist/auth/signup_route_schema.d.ts +2 -2
- package/dist/auth/signup_route_schema.js +1 -1
- package/dist/auth/token_scope.d.ts +8 -8
- package/dist/db/file_fact_url.d.ts +1 -1
- package/dist/env/env_schemas.d.ts +1 -2
- package/dist/env/env_schemas.d.ts.map +1 -1
- package/dist/env/env_schemas.js +3 -4
- package/dist/http/CLAUDE.md +30 -32
- package/dist/http/auth_shape.d.ts +17 -52
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +19 -61
- package/dist/http/db_routes.d.ts +1 -1
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +1 -1
- package/dist/http/error_schemas.d.ts +36 -36
- package/dist/http/jsonrpc.d.ts +11 -11
- package/dist/http/jsonrpc_helpers.js +1 -1
- package/dist/http/route_error_check.d.ts +2 -2
- package/dist/http/route_error_check.d.ts.map +1 -1
- package/dist/http/route_error_check.js +2 -3
- package/dist/http/route_errors.d.ts +4 -4
- package/dist/http/route_errors.d.ts.map +1 -1
- package/dist/http/route_errors.js +0 -13
- package/dist/http/route_spec.d.ts +33 -36
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +21 -22
- package/dist/http/schema_helpers.d.ts +75 -67
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +54 -76
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +6 -8
- package/dist/primitive_schemas.d.ts +162 -112
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +129 -161
- package/dist/realtime/sse.d.ts +3 -3
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +2 -2
- package/dist/schema_issues.d.ts +41 -146
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_issues.js +39 -322
- package/dist/schema_meta.d.ts +63 -136
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +37 -184
- package/dist/sensitivity.d.ts +3 -5
- package/dist/sensitivity.d.ts.map +1 -1
- package/dist/sensitivity.js +3 -5
- package/dist/server/serve_fact_route.js +1 -1
- package/dist/server/surface_route.js +1 -1
- package/dist/testing/CLAUDE.md +23 -25
- package/dist/testing/adversarial_headers.js +2 -2
- package/dist/testing/adversarial_input_cases.d.ts +19 -18
- package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
- package/dist/testing/adversarial_input_cases.js +29 -42
- package/dist/testing/assertions.d.ts +2 -2
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/assertions.js +3 -3
- package/dist/testing/cross_backend/account_lifecycle.js +2 -2
- package/dist/testing/cross_backend/action_manifest.d.ts +10 -9
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +4 -3
- package/dist/testing/cross_backend/cell_crud.js +1 -1
- package/dist/testing/cross_backend/conformance_case.d.ts +96 -114
- package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_case.js +0 -256
- package/dist/testing/cross_backend/conformance_rpc_auth.d.ts +0 -62
- package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +3 -3
- package/dist/testing/cross_backend/cross_rpc.d.ts +3 -4
- package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
- package/dist/testing/cross_backend/cross_rpc.js +4 -4
- package/dist/testing/cross_backend/differential.js +2 -2
- package/dist/testing/cross_backend/fact_serving.js +1 -1
- package/dist/testing/cross_backend/identity_parity.js +9 -9
- package/dist/testing/cross_backend/origin_conformance.d.ts +9 -9
- package/dist/testing/cross_backend/query_shape.js +1 -1
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
- package/dist/testing/cross_backend/setup.d.ts +26 -4
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +7 -8
- package/dist/testing/cross_backend/sse_round_trip.js +2 -2
- package/dist/testing/cross_backend/testing_origin_check.d.ts +12 -12
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +608 -201
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +46 -55
- package/dist/testing/cross_backend/token_lifetime.js +3 -3
- package/dist/testing/cross_backend/wire_shapes.js +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.js +35 -0
- package/dist/testing/cross_backend/ws_round_trip.js +1 -1
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +1 -1
- package/dist/testing/integration.js +2 -2
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +2 -2
- package/dist/testing/middleware.d.ts.map +1 -1
- package/dist/testing/middleware.js +2 -2
- package/dist/testing/rpc_attack_surface.js +1 -1
- package/dist/testing/rpc_envelope_cases.d.ts +3 -3
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.js +1 -1
- package/dist/testing/rpc_helpers.d.ts +12 -14
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +9 -11
- package/dist/testing/schema_generators.d.ts +67 -60
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_generators.js +144 -151
- package/dist/testing/schema_introspect.d.ts +438 -78
- package/dist/testing/schema_introspect.d.ts.map +1 -1
- package/dist/testing/schema_introspect.js +26 -26
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +2 -2
- package/dist/testing/surface_invariants.d.ts +1 -1
- package/dist/testing/surface_invariants.js +1 -1
- package/dist/testing/transports/bootstrap.d.ts +1 -1
- package/dist/testing/transports/bootstrap.d.ts.map +1 -1
- package/dist/testing/transports/bootstrap.js +1 -1
- package/dist/ui/BootstrapForm.svelte +1 -2
- package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
- package/dist/ui/SignupForm.svelte +1 -2
- package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.d.ts +5 -5
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_sessions_state.svelte.d.ts +2 -2
- package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/form_state.svelte.d.ts +1 -1
- package/dist/ui/form_state.svelte.js +1 -1
- package/dist/ui/role_grant_offers_state.svelte.d.ts +1 -1
- package/package.json +7 -9
- package/dist/primitive_schemas_fuz.d.ts +0 -178
- package/dist/primitive_schemas_fuz.d.ts.map +0 -1
- package/dist/primitive_schemas_fuz.js +0 -149
- package/dist/zod.d.ts +0 -101
- package/dist/zod.d.ts.map +0 -1
- package/dist/zod.js +0 -195
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Reusable validator-schema primitives
|
|
3
|
-
* `
|
|
4
|
-
*
|
|
5
|
-
* the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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`.
|
|
15
11
|
*
|
|
16
12
|
* Client-safe: nothing here imports `@fuzdev/blake3-wasm`, so wire schemas
|
|
17
13
|
* that validate a hash don't pull the WASM binary into a bundle.
|
|
18
14
|
*
|
|
19
15
|
* @module
|
|
20
16
|
*/
|
|
21
|
-
import {
|
|
22
|
-
import type { Branded } from '@fuzdev/fuz_schema/schema.ts';
|
|
23
|
-
import { type FactHash } from '@fuzdev/fuz_util/hash_schemas.ts';
|
|
17
|
+
import { string, type Infer, type PipeSchema } from '@fuzdev/fuz_schema/schema.ts';
|
|
24
18
|
/** Length bounds for `bounded_string`, in UTF-16 code units. */
|
|
25
19
|
export interface BoundedStringOptions {
|
|
26
20
|
/** Shortest string admitted. Omit for no lower bound. */
|
|
@@ -34,27 +28,15 @@ export interface BoundedStringOptions {
|
|
|
34
28
|
* A string schema whose length is bounded in UTF-16 code units — what
|
|
35
29
|
* `String.length` measures, and what the Rust spine counts
|
|
36
30
|
* (`encode_utf16().count()`), so an astral-plane character costs two on both.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
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.
|
|
31
|
+
* fuz_schema's `min_length` / `max_length` read `String.length`. Every length
|
|
32
|
+
* bound on a wire string in the package is built here. Its JSON Schema
|
|
33
|
+
* carries `minLength` / `maxLength`; `max_message` replaces fuz_schema's
|
|
34
|
+
* message on the over-`max` issue.
|
|
49
35
|
*
|
|
50
|
-
*
|
|
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
|
|
36
|
+
* @param options - the bounds, in UTF-16 code units, and the max message
|
|
55
37
|
* @returns the bounded string schema
|
|
56
38
|
*/
|
|
57
|
-
export declare const bounded_string: (options: BoundedStringOptions) =>
|
|
39
|
+
export declare const bounded_string: (options: BoundedStringOptions) => PipeSchema<string, typeof string>;
|
|
58
40
|
/** Minimum username length (must have start + middle + end characters). */
|
|
59
41
|
export declare const USERNAME_LENGTH_MIN = 3;
|
|
60
42
|
/** Maximum username length (matches GitHub's limit). The grammar is ASCII, so units and characters agree. */
|
|
@@ -71,14 +53,48 @@ export declare const USERNAME_PROVIDED_LENGTH_MAX = 255;
|
|
|
71
53
|
* Username for account creation — starts with letter, alphanumeric/dash/underscore middle, ends with alphanumeric. No @ or . allowed.
|
|
72
54
|
*
|
|
73
55
|
* Canonicalized to lowercase at parse time. The regex rejects whitespace
|
|
74
|
-
* outright, so
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
56
|
+
* outright, so no trim is needed. Storage is canonical across every creation
|
|
57
|
+
* site (bootstrap, signup, admin-create, invite acceptance) because the
|
|
58
|
+
* schema is the single source of truth — eliminates the per-caller
|
|
59
|
+
* `trim().toLowerCase()` ritual and keeps the `LOWER(username) = LOWER($1)`
|
|
60
|
+
* lookup contract simple. A string outside the bounds and off the grammar
|
|
61
|
+
* gets the length issue alone.
|
|
62
|
+
*/
|
|
63
|
+
export declare const Username: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
64
|
+
export type Username = Infer<typeof Username>;
|
|
65
|
+
/**
|
|
66
|
+
* A username's canonical grammar, `USERNAME_REGEX` in lowercase: a lowercase
|
|
67
|
+
* letter, then lowercase letters, digits, `_` or `-`, ending in a lowercase
|
|
68
|
+
* letter or digit. What `Username` outputs, and what an `account` row holds
|
|
69
|
+
* (its `account_username_lowercase` CHECK).
|
|
70
|
+
*/
|
|
71
|
+
export declare const USERNAME_CANONICAL_REGEX: RegExp;
|
|
72
|
+
/**
|
|
73
|
+
* A username as an account row holds it, the `username` of an output: the
|
|
74
|
+
* bounds of `Username` and `USERNAME_CANONICAL_REGEX`, no transform. A
|
|
75
|
+
* username in any other case fails, where `Username` lowercases it.
|
|
79
76
|
*/
|
|
80
|
-
export declare const
|
|
81
|
-
export type
|
|
77
|
+
export declare const UsernameCanonical: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
78
|
+
export type UsernameCanonical = Infer<typeof UsernameCanonical>;
|
|
79
|
+
/**
|
|
80
|
+
* Username submitted for login or lookup — minimal validation, for
|
|
81
|
+
* forward-compatibility if the creation grammar changes: at least one and at
|
|
82
|
+
* most `USERNAME_PROVIDED_LENGTH_MAX` UTF-16 code units, measured before
|
|
83
|
+
* trimming, holding a character that isn't whitespace.
|
|
84
|
+
*
|
|
85
|
+
* Canonicalized to `.trim().toLowerCase()` at parse time, so login's
|
|
86
|
+
* per-account rate-limit key and its lookup see one value whatever the casing
|
|
87
|
+
* or surrounding whitespace, as `Username` canonicalizes what is stored.
|
|
88
|
+
*
|
|
89
|
+
* A whitespace-only identifier is refused, not canonicalized to `""` and left
|
|
90
|
+
* to fall through to a lookup-miss 401: an empty identifier is malformed
|
|
91
|
+
* input, not a wrong credential, and the Rust spine's `account_login` refuses
|
|
92
|
+
* it too. JS `\s` is exactly the set `trim` removes (ECMA-262's WhiteSpace and
|
|
93
|
+
* LineTerminator), so the `regex` ahead of the transform refuses what would
|
|
94
|
+
* trim to nothing.
|
|
95
|
+
*/
|
|
96
|
+
export declare const UsernameProvided: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
97
|
+
export type UsernameProvided = Infer<typeof UsernameProvided>;
|
|
82
98
|
/**
|
|
83
99
|
* Maximum email length in **bytes** — RFC 5321 §4.5.3.1.3 path-length limit
|
|
84
100
|
* (the limit is octets). `Email` bounds the UTF-8 byte length, matching the
|
|
@@ -107,11 +123,11 @@ export declare const EMAIL_LENGTH_MAX = 254;
|
|
|
107
123
|
* language, is quadratic: it tries every `.` as the split.
|
|
108
124
|
*/
|
|
109
125
|
export declare const EMAIL_REGEX: RegExp;
|
|
110
|
-
/** The message of an email over `EMAIL_LENGTH_MAX` bytes, on
|
|
126
|
+
/** The message of an email over `EMAIL_LENGTH_MAX` bytes, on `Email`. */
|
|
111
127
|
export declare const EMAIL_LENGTH_MESSAGE = "Email must be at most 254 bytes";
|
|
112
128
|
/**
|
|
113
|
-
* Whether `s` is at most `EMAIL_LENGTH_MAX` bytes in UTF-8, the bound
|
|
114
|
-
*
|
|
129
|
+
* Whether `s` is at most `EMAIL_LENGTH_MAX` bytes in UTF-8, the bound `Email`
|
|
130
|
+
* checks.
|
|
115
131
|
*
|
|
116
132
|
* `s.length` (UTF-16 units) is a cheap upper bound that short-circuits the
|
|
117
133
|
* `encode` on absurd inputs: a valid (<= 254-byte) address is necessarily
|
|
@@ -124,85 +140,119 @@ export declare const EMAIL_LENGTH_MESSAGE = "Email must be at most 254 bytes";
|
|
|
124
140
|
export declare const is_email_within_length_max: (s: string) => boolean;
|
|
125
141
|
/**
|
|
126
142
|
* Email validation. Every current consumer pairs it with `Username` (signup,
|
|
127
|
-
* invites, audit log), so the two live together with the other
|
|
128
|
-
* primitives.
|
|
143
|
+
* invites, audit log), so the two live together with the other primitives.
|
|
129
144
|
*
|
|
130
145
|
* Deliberately permissive — a structural shape check (`EMAIL_REGEX` plus the
|
|
131
146
|
* `EMAIL_LENGTH_MAX` byte bound), not RFC 5322 conformance or deliverability
|
|
132
|
-
* (real delivery is proven by a confirmation email).
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* trimmed), so storage is verbatim and the case-insensitive lookup rides the
|
|
141
|
-
* DB-side `LOWER(email)`.
|
|
147
|
+
* (real delivery is proven by a confirmation email). The rule is one explicit
|
|
148
|
+
* regex the Rust spine's `is_valid_email` mirrors, looser than grammars
|
|
149
|
+
* requiring a 2+ char TLD and no consecutive dots, which reject addresses like
|
|
150
|
+
* `a@b.c`. The length bound is the UTF-8 **byte** count (RFC 5321
|
|
151
|
+
* measures octets), so a multibyte address is bounded identically to the
|
|
152
|
+
* Rust spine's `s.len()`. No transform: case is preserved and surrounding
|
|
153
|
+
* whitespace is rejected (not trimmed), so storage is verbatim and the
|
|
154
|
+
* case-insensitive lookup rides the DB-side `LOWER(email)`.
|
|
142
155
|
*
|
|
143
|
-
* The
|
|
144
|
-
*
|
|
156
|
+
* The `max_length` ahead of the grammar refuses a string past the bound in
|
|
157
|
+
* UTF-16 code units, which is past it in bytes too, before the regex reads
|
|
158
|
+
* it, and the `check` after it the multibyte address within the units but
|
|
159
|
+
* past the bytes, both with `EMAIL_LENGTH_MESSAGE`. Its JSON Schema carries
|
|
160
|
+
* the bound as `maxLength`.
|
|
145
161
|
*/
|
|
146
|
-
export declare const Email:
|
|
147
|
-
export type Email =
|
|
162
|
+
export declare const Email: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
163
|
+
export type Email = Infer<typeof Email>;
|
|
148
164
|
/** Returns a new random (v4) `Uuid`. */
|
|
149
165
|
export declare const create_uuid: () => Uuid;
|
|
150
166
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
*
|
|
160
|
-
* `
|
|
161
|
-
*
|
|
162
|
-
*
|
|
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.
|
|
167
|
+
* The UUID grammar of RFC 9562, in either case: five groups of hex digits,
|
|
168
|
+
* 8-4-4-4-12, with a version from 1 to 8 and the RFC's variant, or the nil or
|
|
169
|
+
* the max UUID, read case-insensitively as RFC 9562 §4 reads a UUID. The same
|
|
170
|
+
* source as the pattern fuz_schema's `uuid` renders to JSON Schema, which a
|
|
171
|
+
* test holds it to, and the grammar of the Rust spine's `is_valid_uuid`.
|
|
172
|
+
*/
|
|
173
|
+
export declare const UUID_REGEX: RegExp;
|
|
174
|
+
/**
|
|
175
|
+
* Branded UUID schema: a UUID of RFC 9562 in either case, fuz_schema's `uuid`
|
|
176
|
+
* (whose grammar is `UUID_REGEX`), output in lowercase — the form Postgres renders a `uuid` in and every id
|
|
177
|
+
* the server mints — so a parsed id compares equal to the same id read back
|
|
178
|
+
* from the database. The Rust spine canonicalizes the same way. The brand
|
|
179
|
+
* goes outside the `to_lower_case`, which outputs a new string.
|
|
171
180
|
*/
|
|
172
|
-
export declare const Uuid:
|
|
173
|
-
|
|
181
|
+
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">)[]> & {
|
|
182
|
+
readonly '~types'?: {
|
|
183
|
+
readonly input: string;
|
|
184
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
185
|
+
} | undefined;
|
|
186
|
+
};
|
|
187
|
+
export type Uuid = Infer<typeof Uuid>;
|
|
174
188
|
/** `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`. */
|
|
175
|
-
export declare const UuidWithDefault:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
export declare const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Wire-form schema for a `blake3:`-prefixed fact hash, whose output is
|
|
189
|
+
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">)[]> & {
|
|
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 UuidWithDefault = Infer<typeof UuidWithDefault>;
|
|
196
|
+
/**
|
|
197
|
+
* A timestamp on the wire: a date and time of RFC 3339 in UTC, fuz_schema's
|
|
198
|
+
* `iso_datetime`, which both spines' `YYYY-MM-DDTHH:MM:SSZ`
|
|
199
|
+
* (`iso8601_timestamp_column`) and a `toISOString()` stamp satisfy. Not
|
|
200
|
+
* branded.
|
|
201
|
+
*/
|
|
202
|
+
export declare const Timestamp: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
203
|
+
export type Timestamp = Infer<typeof Timestamp>;
|
|
204
|
+
/**
|
|
205
|
+
* A `blake3:`-prefixed fact hash on the wire: `FACT_HASH_EXACT`, its output
|
|
194
206
|
* `FactHash` from `@fuzdev/fuz_util/hash_schemas.ts` — the type
|
|
195
|
-
* `fact_hash_bytes`, `fact_hash_stream`, and `FactStore`
|
|
207
|
+
* `fact_hash_bytes`, `fact_hash_stream`, and `FactStore` take — so a parsed
|
|
196
208
|
* value passes straight to them. Client-side (cell payloads) and server-side
|
|
197
|
-
* (DB-row hashes) consumers reuse this same schema.
|
|
209
|
+
* (DB-row hashes) consumers reuse this same schema. Its JSON Schema is the
|
|
210
|
+
* `pattern`.
|
|
211
|
+
*/
|
|
212
|
+
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">)[]> & {
|
|
213
|
+
readonly '~types'?: {
|
|
214
|
+
readonly input: string;
|
|
215
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
216
|
+
} | undefined;
|
|
217
|
+
};
|
|
218
|
+
/** A BLAKE3 hex hash's grammar: 64 lowercase hex characters (256-bit output). */
|
|
219
|
+
export declare const BLAKE3_HASH_REGEX: RegExp;
|
|
220
|
+
/** The message of a string off `BLAKE3_HASH_REGEX`. */
|
|
221
|
+
export declare const BLAKE3_HASH_MESSAGE = "Expected a 64-character lowercase hex blake3 hash";
|
|
222
|
+
/**
|
|
223
|
+
* A BLAKE3 hex hash: `BLAKE3_HASH_REGEX`, whose issue carries
|
|
224
|
+
* `BLAKE3_HASH_MESSAGE`. A value that is no string gets fuz_schema's message.
|
|
225
|
+
*/
|
|
226
|
+
export declare const Blake3Hash: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
227
|
+
export type Blake3Hash = Infer<typeof Blake3Hash>;
|
|
228
|
+
/** The `description` of `ActingActor`. */
|
|
229
|
+
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.";
|
|
230
|
+
/**
|
|
231
|
+
* `acting` field shared by every input that needs the caller's acting actor.
|
|
232
|
+
* Declaring `acting: ActingActor` on a route or action input signals to the
|
|
233
|
+
* dispatcher's authorization phase to resolve an actor against the
|
|
234
|
+
* authenticated account: it runs `resolve_acting_actor`, builds the
|
|
235
|
+
* actor-bound `RequestContext`, and loads role_grants before auth guards fire.
|
|
198
236
|
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* `
|
|
206
|
-
|
|
207
|
-
|
|
237
|
+
* Resolution rules: omitted + 1 actor → use it; omitted + multiple actors →
|
|
238
|
+
* `actor_required` with the available list; supplied + on the account → use
|
|
239
|
+
* it; supplied + foreign actor → `actor_not_on_account`.
|
|
240
|
+
*
|
|
241
|
+
* Account-grain routes — input doesn't declare `acting` and auth doesn't
|
|
242
|
+
* require role_grants — skip resolution entirely; their `RequestContext.actor`
|
|
243
|
+
* is `null` and the audit envelope's `actor_id` stays null.
|
|
244
|
+
*
|
|
245
|
+
* Paired with `RouteAuth` (`http/auth_shape.ts`) by registry-time invariant
|
|
246
|
+
* 2: `auth.actor !== 'none'` ⟺ input (or query, on REST GETs) declares
|
|
247
|
+
* `acting?: ActingActor`. The dispatcher finds it by reference
|
|
248
|
+
* (`input_schema_declares_acting`), so an input declares this export, not a
|
|
249
|
+
* copy of it.
|
|
250
|
+
*/
|
|
251
|
+
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">)[]> & {
|
|
252
|
+
readonly '~types'?: {
|
|
253
|
+
readonly input: string;
|
|
254
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
255
|
+
} | undefined;
|
|
256
|
+
}>>;
|
|
257
|
+
export type ActingActor = Infer<typeof ActingActor>;
|
|
208
258
|
//# 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
|
|
1
|
+
{"version":3,"file":"primitive_schemas.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/primitive_schemas.ts"],"names":[],"mappings":"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"}
|